public void setUTMZone(int zone) { zone--; projectionLongitude = (zone + .5) * Math.PI / 30. - Math.PI; projectionLatitude = 0.0; scaleFactor = 0.9996; falseEasting = 500000; initialize(); }
public void setUTMZone(int zone) { zone--; projectionLongitude = (zone + .5) * Math.PI / 30. -Math.PI; projectionLatitude = 0.0; scaleFactor = 0.9996; falseEasting = 500000; initialize(); }
public void setUTMZone(int zone) { zone--; projectionLongitude = (zone + .5) * Math.PI / 30. - Math.PI; projectionLatitude = 0.0; scaleFactor = 0.9996; falseEasting = 500000; initialize(); }
public void setUTMZone(int zone) { zone--; projectionLongitude = (zone + .5) * Math.PI / 30. - Math.PI; projectionLatitude = 0.0; scaleFactor = 0.9996; falseEasting = 500000; initialize(); }
public TransverseMercatorProjection() { super("TransverseMercatorProjection", false); ellipsoid = new Earth(); projectionLatitude = Math.toRadians(0); projectionLongitude = Math.toRadians(0); initialize(); }
public TransverseMercatorProjection() { super("TransverseMercatorProjection", false); ellipsoid = new Earth(); projectionLatitude = Math.toRadians(0); projectionLongitude = Math.toRadians(0); initialize(); }
public TransverseMercatorProjection() { super("TransverseMercatorProjection", false); ellipsoid = new Earth(); projectionLatitude = Math.toRadians(0); projectionLongitude = Math.toRadians(0); initialize(); }
public TransverseMercatorProjection() { ellipsoid = new Earth(); projectionLatitude = Math.toRadians(0); projectionLongitude = Math.toRadians(0); initialize(); }
/** * Set up a projection suitable for State Plane Coordinates. * Best used with earth ellipsoid and false-easting/northing in km */ public TransverseMercatorProjection(Earth ellipsoid, double lon_0_deg, double lat_0_deg, double k, double falseEast, double falseNorth) { super("TransverseMercatorProjection", false); this.ellipsoid = ellipsoid; projectionLongitude = Math.toRadians(lon_0_deg); projectionLatitude = Math.toRadians(lat_0_deg); scaleFactor = k; falseEasting = falseEast; falseNorthing = falseNorth; initialize(); // parameters addParameter(CF.GRID_MAPPING_NAME, CF.TRANSVERSE_MERCATOR); addParameter(CF.LONGITUDE_OF_CENTRAL_MERIDIAN, lon_0_deg); addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat_0_deg); addParameter(CF.SCALE_FACTOR_AT_CENTRAL_MERIDIAN, scaleFactor); if ((falseEasting != 0.0) || (falseNorthing != 0.0)) { addParameter(CF.FALSE_EASTING, falseEasting); addParameter(CF.FALSE_NORTHING, falseNorthing); addParameter(CDM.UNITS, "km"); } addParameter(CF.SEMI_MAJOR_AXIS, ellipsoid.getMajor()); addParameter(CF.INVERSE_FLATTENING, 1.0 / ellipsoid.getFlattening()); //System.err.println(paramsToString()); }
/** * Set up a projection suitable for State Plane Coordinates. * Best used with earth ellipsoid and false-easting/northing in km */ public TransverseMercatorProjection(Earth ellipsoid, double lon_0_deg, double lat_0_deg, double k, double falseEast, double falseNorth) { super("TransverseMercatorProjection", false); this.ellipsoid = ellipsoid; projectionLongitude = Math.toRadians(lon_0_deg); projectionLatitude = Math.toRadians(lat_0_deg); scaleFactor = k; falseEasting = falseEast; falseNorthing = falseNorth; initialize(); // parameters addParameter(CF.GRID_MAPPING_NAME, CF.TRANSVERSE_MERCATOR); addParameter(CF.LONGITUDE_OF_CENTRAL_MERIDIAN, lon_0_deg); addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat_0_deg); addParameter(CF.SCALE_FACTOR_AT_CENTRAL_MERIDIAN, scaleFactor); if ((falseEasting != 0.0) || (falseNorthing != 0.0)) { addParameter(CF.FALSE_EASTING, falseEasting); addParameter(CF.FALSE_NORTHING, falseNorthing); addParameter(CDM.UNITS, "km"); } addParameter(CF.SEMI_MAJOR_AXIS, ellipsoid.getMajor()); addParameter(CF.INVERSE_FLATTENING, 1.0 / ellipsoid.getFlattening()); //System.err.println(paramsToString()); }
/** * Set up a projection suitable for State Plane Coordinates. * Best used with earth ellipsoid and false-easting/northing in km */ public TransverseMercatorProjection(Earth ellipsoid, double lon_0_deg, double lat_0_deg, double k, double falseEast, double falseNorth) { this.ellipsoid = ellipsoid; projectionLongitude = Math.toRadians(lon_0_deg); projectionLatitude = Math.toRadians(lat_0_deg); scaleFactor = k; falseEasting = falseEast; falseNorthing = falseNorth; initialize(); // parameters addParameter(ATTR_NAME, "transverse_mercator"); addParameter("longitude_of_central_meridian", lon_0_deg); addParameter("latitude_of_projection_origin", lat_0_deg); addParameter("scale_factor_at_central_meridian", scaleFactor); if ((falseEasting != 0.0) || (falseNorthing != 0.0)) { addParameter("false_easting", falseEasting); addParameter("false_northing", falseNorthing); addParameter("units", "km"); } addParameter("semi_major_axis", ellipsoid.getMajor()); addParameter("inverse_flattening", 1.0/ellipsoid.getFlattening()); //System.err.println(paramsToString()); }
/** * Set up a projection suitable for State Plane Coordinates. * Best used with earth ellipsoid and false-easting/northing in km */ public TransverseMercatorProjection(Earth ellipsoid, double lon_0_deg, double lat_0_deg, double k, double falseEast, double falseNorth) { super("TransverseMercatorProjection", false); this.ellipsoid = ellipsoid; projectionLongitude = Math.toRadians(lon_0_deg); projectionLatitude = Math.toRadians(lat_0_deg); scaleFactor = k; falseEasting = falseEast; falseNorthing = falseNorth; initialize(); // parameters addParameter(CF.GRID_MAPPING_NAME, CF.TRANSVERSE_MERCATOR); addParameter(CF.LONGITUDE_OF_CENTRAL_MERIDIAN, lon_0_deg); addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat_0_deg); addParameter(CF.SCALE_FACTOR_AT_CENTRAL_MERIDIAN, scaleFactor); if ((falseEasting != 0.0) || (falseNorthing != 0.0)) { addParameter(CF.FALSE_EASTING, falseEasting); addParameter(CF.FALSE_NORTHING, falseNorthing); addParameter(CDM.UNITS, "km"); } addParameter(CF.SEMI_MAJOR_AXIS, ellipsoid.getMajor()); addParameter(CF.INVERSE_FLATTENING, 1.0 / ellipsoid.getFlattening()); //System.err.println(paramsToString()); }