Examples of SetLayerCRSCommand


Examples of org.locationtech.udig.project.ui.internal.commands.SetLayerCRSCommand

    public static void apply(Layer layer, CoordinateReferenceSystem crs ) {
        if(!layer.getCRS().equals(crs)) {
            UndoableComposite commands=new UndoableComposite();
            List<MapCommand> commandList = commands.getCommands();
            commandList.add(new SetLayerCRSCommand(layer, crs));
            layer.getMap().sendCommandASync(commands);
        }
    }
View Full Code Here

Examples of org.locationtech.udig.project.ui.internal.commands.SetLayerCRSCommand

        }

        public void applyCoordinateReferenceSystem( CoordinateReferenceSystem crs ) {
            UndoableComposite commands=new UndoableComposite();
            List<MapCommand> commandList = commands.getCommands();
            commandList.add(new SetLayerCRSCommand(layer, crs));
            if( layer.getCRS()==ILayer.UNKNOWN_CRS &&
                    layer.getMap().getViewportModel().getCRS().equals(ILayer.UNKNOWN_CRS) ){
                IPreferenceStore store=ProjectUIPlugin.getDefault().getPreferenceStore();
                store.setDefault(SHOW_DIALOG_KEY, true);
                boolean openDialog=store.getBoolean(SHOW_DIALOG_KEY);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.