/** * Set the origin longitude. * * @param lon the origin longitude. */ public void setOriginLon(double lon) { lon0 = lon; precalculate(); }
/** * Set the origin longitude. * * @param lon the origin longitude. */ public void setOriginLon(double lon) { lon0 = lon; precalculate(); }
/** * Set the first standard parallel * * @param par the first standard parallel */ public void setParallel(double par) { this.par = par; precalculate(); }
/** * Set the origin longitude. * * @param lon the origin longitude. */ public void setOriginLon(double lon) { lon0 = lon; precalculate(); }
/** * Set the first standard parallel * * @param par the first standard parallel */ public void setParallel(double par) { this.par = par; this.par_r = Math.toRadians(par); precalculate(); }
/** * Set the first standard parallel * * @param par the first standard parallel */ public void setParallel(double par) { this.par = par; this.par_r = Math.toRadians(par); precalculate(); }
/** * Set the first standard parallel * * @param par the first standard parallel */ public void setParallel(double par) { this.par = par; this.par_r = Math.toRadians(par); precalculate(); }
/** * Set the origin longitude. * * @param lon the origin longitude. */ public void setOriginLon(double lon) { origin.setLongitude(lon); lon0 = lon; precalculate(); }
/** * Construct a Mercator Projection. * * @param lon0 longitude of origin (degrees) * @param par standard parallel (degrees). cylinder cuts earth at this latitude. * @param false_easting false_easting in km * @param false_northing false_northing in km */ public Mercator(double lon0, double par, double false_easting, double false_northing) { origin = new LatLonPointImpl(0.0, lon0); this.lon0 = lon0; this.par = par; this.falseEasting = false_easting; this.falseNorthing = false_northing; this.par_r = Math.toRadians(par); precalculate(); addParameter(ATTR_NAME, "mercator"); addParameter("longitude_of_projection_origin", lon0); addParameter("standard_parallel", par); if (false_easting != 0.0) addParameter("false_easting", false_easting); if (false_northing != 0.0) addParameter("false_northing", false_northing); }
/** * Construct a Mercator Projection. * * @param lon0 longitude of origin (degrees) * @param par standard parallel (degrees). cylinder cuts earth at this latitude. * @param false_easting false_easting in km * @param false_northing false_northing in km * @param radius earth radius in km */ public Mercator(double lon0, double par, double false_easting, double false_northing, double radius) { super("Mercator", false); this.lon0 = lon0; this.par = par; this.falseEasting = false_easting; this.falseNorthing = false_northing; this.earthRadius = radius; this.par_r = Math.toRadians(par); precalculate(); addParameter(CF.GRID_MAPPING_NAME, CF.MERCATOR); addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lon0); addParameter(CF.STANDARD_PARALLEL, par); addParameter(CF.EARTH_RADIUS, earthRadius * 1000); if ((false_easting != 0.0) || (false_northing != 0.0)) { addParameter(CF.FALSE_EASTING, false_easting); addParameter(CF.FALSE_NORTHING, false_northing); addParameter(CDM.UNITS, "km"); } }
/** * Construct a Mercator Projection. * * @param lon0 longitude of origin (degrees) * @param par standard parallel (degrees). cylinder cuts earth at this latitude. * @param false_easting false_easting in km * @param false_northing false_northing in km * @param radius earth radius in km */ public Mercator(double lon0, double par, double false_easting, double false_northing, double radius) { super("Mercator", false); this.lon0 = lon0; this.par = par; this.falseEasting = false_easting; this.falseNorthing = false_northing; this.earthRadius = radius; this.par_r = Math.toRadians(par); precalculate(); addParameter(CF.GRID_MAPPING_NAME, CF.MERCATOR); addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lon0); addParameter(CF.STANDARD_PARALLEL, par); addParameter(CF.EARTH_RADIUS, earthRadius * 1000); if ((false_easting != 0.0) || (false_northing != 0.0)) { addParameter(CF.FALSE_EASTING, false_easting); addParameter(CF.FALSE_NORTHING, false_northing); addParameter(CDM.UNITS, "km"); } }
/** * Construct a Mercator Projection. * * @param lon0 longitude of origin (degrees) * @param par standard parallel (degrees). cylinder cuts earth at this latitude. * @param false_easting false_easting in km * @param false_northing false_northing in km * @param radius earth radius in km */ public Mercator(double lon0, double par, double false_easting, double false_northing, double radius) { super("Mercator", false); this.lon0 = lon0; this.par = par; this.falseEasting = false_easting; this.falseNorthing = false_northing; this.earthRadius = radius; this.par_r = Math.toRadians(par); precalculate(); addParameter(CF.GRID_MAPPING_NAME, CF.MERCATOR); addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lon0); addParameter(CF.STANDARD_PARALLEL, par); addParameter(CF.EARTH_RADIUS, earthRadius * 1000); if ((false_easting != 0.0) || (false_northing != 0.0)) { addParameter(CF.FALSE_EASTING, false_easting); addParameter(CF.FALSE_NORTHING, false_northing); addParameter(CDM.UNITS, "km"); } }