Examples of Mercator


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

Examples of chunmap.model.crs.proj.Mercator

    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

Examples of chunmap.model.crs.proj.Mercator

    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

Examples of com.bbn.openmap.proj.Mercator

    public void setCreatePointCheck(boolean createPointCheck) {
        this.createPointCheck = createPointCheck;
    }
   
    public void runGeoTests(int numIterations, int numToSkipAtStart) {
        Projection proj = new Mercator(new LatLonPoint(35f, -90f), 100000000, 800, 800);

        double[] results = new double[7];

        for (int i = 0; i < numIterations; i++) {

            boolean countThisIteration = (i >= numToSkipAtStart);

            long startTime = System.currentTimeMillis();
            setProjection(proj.makeClone());
            calculateIntersectionsWithDrawnList();
            long endTime = System.currentTimeMillis();
            if (countThisIteration) {
                results[0] += endTime - startTime;
            }
View Full Code Here

Examples of org.openstreetmap.josm.data.projection.Mercator

   *            The parsed argument list.
   */
  public static void preConstructorInit(Map<String, Collection<String>> args) {
    try {
//      Main.proj = new Epsg4326();
      Main.proj = new Mercator();
    } catch (final Exception e) {
      e.printStackTrace();
      JOptionPane
          .showMessageDialog(
              null,
              tr("The projection could not be read from preferences. Using Mercartor"));
      Main.proj = new Mercator();
    }

    try {
      try {
        String laf = Main.pref.get("laf");
View Full Code Here

Examples of org.openstreetmap.josm.data.projection.proj.Mercator

    public final void update(String pref) throws ProjectionConfigurationException {
        this.pref = pref;
        if (pref == null) {
            ellps = Ellipsoid.WGS84;
            datum = WGS84Datum.INSTANCE;
            proj = new Mercator();
            bounds = new Bounds(
                    -85.05112877980659, -180.0,
                    85.05112877980659, 180.0, true);
        } else {
            Map<String, String> parameters = parseParameterList(pref);
View Full Code Here

Examples of ucar.unidata.geoloc.projection.Mercator

       // dxKm = DEG_TO_RAD * EARTH_RAD_KMETERS * Math.abs((lon_1-lon_2) / (nx-1));
      //  double dy  =  EARTH_RAD_KMETERS * Math.cos(DEG_TO_RAD*latt) / (ny - 1);
      //  dyKm = dy *( Math.log( Math.tan(DEG_TO_RAD*( (lat2-latt)/2.0 + 45.0 ) ) )
      //                  -Math.log( Math.tan(DEG_TO_RAD*( (lat1-latt)/2.0 + 45.0 ) ) ) );
      //  dxKm = DEG_TO_RAD * EARTH_RAD_KMETERS * Math.abs(lon1-lon2) / (ny-1);
        projection = new Mercator( lonv, latin) ;
        break;

      case 3:                               /* Lambert Conformal             */
      case 5:                               /* Polar Stereographic           */
        /*
 
View Full Code Here

Examples of ucar.unidata.geoloc.projection.Mercator

          double lat0 = geoSatelliteSecondHeader.centerLatitudeOfProjection;
          double lon0 = geoSatelliteSecondHeader.centerLongitudeOfProjection;
          double par = geoSatelliteSecondHeader.standardLatitude1;
          dxKm = geoSatelliteSecondHeader.horizontalResolution;
          dyKm = geoSatelliteSecondHeader.verticalResolution;
          projection = new Mercator(lon0, par);
        } else if (proj == 1) {
          att = new Attribute("ProjName", "LAMBERT_CONFORNAL");
          double lat0 = geoSatelliteSecondHeader.centerLatitudeOfProjection;
          double lon0 = geoSatelliteSecondHeader.centerLongitudeOfProjection;
          double par1 = geoSatelliteSecondHeader.standardLatitude1;
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.