Package org.locationtech.udig.project.internal.commands

Examples of org.locationtech.udig.project.internal.commands.ChangeCRSCommand


     * @param map the map for which the CRS is going to change.
     * @return a new {@linkplain ChangeCRSCommand}object that changes the CRS.
     * @see ChangeCRSCommand
     */
    public UndoableMapCommand createChangeCRS( IMap map, CoordinateReferenceSystem crs ) {
        return new ChangeCRSCommand((Map) map, crs);
    }
View Full Code Here


            CRSChooserDialog dialog = new CRSChooserDialog( getSite().getShell(), crs );
            int code = dialog.open();
            if( Window.OK == code ){
                CoordinateReferenceSystem result = dialog.getResult();
                if( !result.equals(crs)){
                    getMap().sendCommandSync(new ChangeCRSCommand(result));
                    updateCRS();
                }
            }

        }
View Full Code Here

        ILayer layer = (ILayer) target;
        IMap map = layer.getMap();
       
        final CoordinateReferenceSystem after = layer.getCRS();
       
        MapCommand changeProjection = new ChangeCRSCommand(after);
        map.sendCommandASync( changeProjection );
       
    }
View Full Code Here

     * @param map the map for which the CRS is going to change.
     * @return a new {@linkplain ChangeCRSCommand}object that changes the CRS.
     * @see ChangeCRSCommand
     */
    public UndoableMapCommand createChangeCRS( IMap map, CoordinateReferenceSystem crs ) {
        return new ChangeCRSCommand((Map) map, crs);
    }
View Full Code Here

        public MapStrategy( Map map ) {
            this.map = map;
        }

        public void applyCoordinateReferenceSystem( CoordinateReferenceSystem crs ) {
            map.sendCommandASync(new ChangeCRSCommand(crs));
        }
View Full Code Here

                    store.setValue(UPDATE_MAP_CRS_KEY, updateMapCRS);
                }else{
                    updateMapCRS=store.getBoolean(UPDATE_MAP_CRS_KEY);
                }
                if( updateMapCRS ){
                    commandList.add(new ChangeCRSCommand(crs));
                    commandList.add(new SetViewportBBoxCommand(layer.getBounds(new NullProgressMonitor(), crs)));
                }
            }
            layer.getMap().sendCommandASync(commands);
        }
View Full Code Here

            CRSChooserDialog dialog = new CRSChooserDialog( getSite().getShell(), crs );
            int code = dialog.open();
            if( Window.OK == code ){
                CoordinateReferenceSystem result = dialog.getResult();
                if( !result.equals(crs)){
                    getMap().sendCommandSync(new ChangeCRSCommand(result));
                    updateCRS();
                }
            }

        }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.internal.commands.ChangeCRSCommand

Copyright © 2018 www.massapicom. 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.