Package chunmap.model.crs.proj

Examples of chunmap.model.crs.proj.Mercator


   
    UiUtil.addButton(frame,map,"墨卡托投影",new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent arg0) {
        CoordinateRef target = new CoordinateRef();
              target.setProjection(new Mercator());

              ReProjOp.changeMapCRS(map.getLayerCollection(), target);

              map.fullView();
              map.refreshMap();
View Full Code Here


    VectorLayer layer =  LayerFactory.openShapeFile(path1,1);
    layer.setDefaultStyle(new Symbol[]{new GeneralSymbol(),new LabelSymbol()});
   
    //reproj
    CoordinateRef target = new CoordinateRef();
        target.setProjection(new Mercator());
    ReProjOp.changeCRS(layer.getFeatures(), target);
   
    return layer;
  }
View Full Code Here

    style.setStroke(new BasicStroke(3));
    layer1.setDefaultStyle(new Symbol[]{new GeneralSymbol(style)});
   
    //reproj
    CoordinateRef target = new CoordinateRef();
        target.setProjection(new Mercator());
    ReProjOp.changeCRS(layer1.getFeatures(), target);
   
        map.getLayerCollection().add(layer1);
  }
View Full Code Here

TOP

Related Classes of chunmap.model.crs.proj.Mercator

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.