/** * @deprecated */ public void setTangentLat(double latt) { this.latt = Math.toRadians(latt); precalculate(); }
/** * @deprecated */ public void setTangentLon(double lont) { this.lont = Math.toRadians(lont); precalculate(); }
/** * @deprecated */ public void setTangentLon(double lont) { this.lont = Math.toRadians(lont); precalculate(); }
/** * @deprecated */ public void setTangentLon(double lont) { this.lont = Math.toRadians(lont); precalculate(); }
/** * @deprecated */ public void setTangentLat(double latt) { this.latt = Math.toRadians(latt); precalculate(); }
/** * @deprecated */ public void setTangentLat(double latt) { this.latt = Math.toRadians(latt); precalculate(); }
/** * Set the tangent latitude * * @param lat the tangent latitude */ public void setTangentLat(double lat) { origin.setLatitude(lat); latt = Math.toRadians(lat); precalculate(); }
/** * Construct a polar Stereographic Projection, from the "natural origin" and the tangent point, * calculating the scale factor. * * @param lat_ts_deg Latitude at natural origin (degrees_north) * @param latt_deg tangent point of projection (degrees_north) * @param lont_deg tangent point of projection, also origin of projection coord system ((degrees_east) * @param north true if north pole, false is south pole */ public Stereographic(double lat_ts_deg, double latt_deg, double lont_deg, boolean north) { super("PolarStereographic", false); this.latts = Math.toRadians(lat_ts_deg); this.latt = Math.toRadians(latt_deg); this.lont = Math.toRadians(lont_deg); this.isPolar = true; this.isNorth = north; this.earthRadius = EARTH_RADIUS; this.falseEasting = 0; this.falseNorthing = 0; precalculate(); double scaleFactor = (lat_ts_deg == 90 || lat_ts_deg == -90) ? 1.0 : getScaleFactor(latts, north); this.scale = scaleFactor * earthRadius; addParameter(CF.GRID_MAPPING_NAME, "polar_stereographic"); addParameter("longitude_of_projection_origin", lont_deg); addParameter("latitude_of_projection_origin", latt_deg); addParameter("scale_factor_at_projection_origin", scaleFactor); }
/** * Construct a polar Stereographic Projection, from the "natural origin" and the tangent point, * calculating the scale factor. * * @param lat_ts_deg Latitude at natural origin (degrees_north) * @param latt_deg tangent point of projection (degrees_north) * @param lont_deg tangent point of projection, also origin of projection coord system ((degrees_east) * @param north true if north pole, false is south pole */ public Stereographic(double lat_ts_deg, double latt_deg, double lont_deg, boolean north) { super("PolarStereographic", false); this.latts = Math.toRadians(lat_ts_deg); this.latt = Math.toRadians(latt_deg); this.lont = Math.toRadians(lont_deg); this.isPolar = true; this.isNorth = north; this.earthRadius = EARTH_RADIUS; this.falseEasting = 0; this.falseNorthing = 0; precalculate(); double scaleFactor = (lat_ts_deg == 90 || lat_ts_deg == -90) ? 1.0 : getScaleFactor(latts, north); this.scale = scaleFactor * earthRadius; addParameter(CF.GRID_MAPPING_NAME, "polar_stereographic"); addParameter("longitude_of_projection_origin", lont_deg); addParameter("latitude_of_projection_origin", latt_deg); addParameter("scale_factor_at_projection_origin", scaleFactor); }
/** * Construct a polar Stereographic Projection, from the "natural origin" and the tangent point, * calculating the scale factor. * * @param lat_ts_deg Latitude at natural origin (degrees_north) * @param latt_deg tangent point of projection (degrees_north) * @param lont_deg tangent point of projection, also origin of projection coord system ((degrees_east) * @param north true if north pole, false is south pole */ public Stereographic(double lat_ts_deg, double latt_deg, double lont_deg, boolean north) { super("PolarStereographic", false); this.latts = Math.toRadians(lat_ts_deg); this.latt = Math.toRadians(latt_deg); this.lont = Math.toRadians(lont_deg); this.isPolar = true; this.isNorth = north; this.earthRadius = EARTH_RADIUS; this.falseEasting = 0; this.falseNorthing = 0; precalculate(); double scaleFactor = (lat_ts_deg == 90 || lat_ts_deg == -90) ? 1.0 : getScaleFactor(latts, north); this.scale = scaleFactor * earthRadius; addParameter(CF.GRID_MAPPING_NAME, "polar_stereographic"); addParameter("longitude_of_projection_origin", lont_deg); addParameter("latitude_of_projection_origin", latt_deg); addParameter("scale_factor_at_projection_origin", scaleFactor); }
/** * Construct a polar Stereographic Projection, from the "natural origin" and the tangent point, * calculating the scale factor. * * @param lat_ts_deg Latitude at natural origin (degrees_north) * @param latt_deg tangent point of projection (degrees_north) * @param lont_deg tangent point of projection, also origin of projection coord system ((degrees_east) * @param north true if north pole, false is south pole */ public Stereographic(double lat_ts_deg, double latt_deg, double lont_deg, boolean north) { this.latts = Math.toRadians(lat_ts_deg); this.latt = Math.toRadians(latt_deg); this.lont = Math.toRadians(lont_deg); this.isPolar = true; this.isNorth = north; precalculate(); origin = new LatLonPointImpl(latt_deg, lont_deg); double scaleFactor = (lat_ts_deg == 90 || lat_ts_deg == -90) ? 1.0 : getScaleFactor(latts, north); this.scale = scaleFactor * EARTH_RADIUS; addParameter(ATTR_NAME, "polar_stereographic"); addParameter("longitude_of_projection_origin", lont_deg); addParameter("latitude_of_projection_origin", latt_deg); addParameter("scale_factor_at_projection_origin", scaleFactor); }
/** * Construct a Stereographic Projection. * * @param latt tangent point of projection, also origin of projection coord system * @param lont tangent point of projection, also origin of projection coord system * @param scale scale factor at tangent point, "normally 1.0 but may be reduced" * @param false_easting false easting in units of x coords * @param false_northing false northing in units of y coords * @param radius earth radius in km */ public Stereographic(double latt, double lont, double scale, double false_easting, double false_northing, double radius) { super("Stereographic", false); this.latt = Math.toRadians(latt); this.lont = Math.toRadians(lont); this.earthRadius = radius; this.scale = scale * earthRadius; this.falseEasting = false_easting; this.falseNorthing = false_northing; precalculate(); addParameter(CF.GRID_MAPPING_NAME, CF.STEREOGRAPHIC); addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lont); addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, latt); addParameter(CF.SCALE_FACTOR_AT_PROJECTION_ORIGIN, scale); 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 Stereographic Projection. * * @param latt tangent point of projection, also origin of projection coord system * @param lont tangent point of projection, also origin of projection coord system * @param scale scale factor at tangent point, "normally 1.0 but may be reduced" * @param false_easting false easting in units of x coords * @param false_northing false northing in units of y coords * @param radius earth radius in km */ public Stereographic(double latt, double lont, double scale, double false_easting, double false_northing, double radius) { super("Stereographic", false); this.latt = Math.toRadians(latt); this.lont = Math.toRadians(lont); this.earthRadius = radius; this.scale = scale * earthRadius; this.falseEasting = false_easting; this.falseNorthing = false_northing; precalculate(); addParameter(CF.GRID_MAPPING_NAME, CF.STEREOGRAPHIC); addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lont); addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, latt); addParameter(CF.SCALE_FACTOR_AT_PROJECTION_ORIGIN, scale); 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 Stereographic Projection. * * @param latt tangent point of projection, also origin of projection coord system * @param lont tangent point of projection, also origin of projection coord system * @param scale scale factor at tangent point, "normally 1.0 but may be reduced" * @param false_easting false easting in units of x coords * @param false_northing false northing in units of y coords * @param radius earth radius in km */ public Stereographic(double latt, double lont, double scale, double false_easting, double false_northing, double radius) { super("Stereographic", false); this.latt = Math.toRadians(latt); this.lont = Math.toRadians(lont); this.earthRadius = radius; this.scale = scale * earthRadius; this.falseEasting = false_easting; this.falseNorthing = false_northing; precalculate(); addParameter(CF.GRID_MAPPING_NAME, CF.STEREOGRAPHIC); addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lont); addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, latt); addParameter(CF.SCALE_FACTOR_AT_PROJECTION_ORIGIN, scale); 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 Stereographic Projection. * * @param latt tangent point of projection, also origin of * projection coord system * @param lont tangent point of projection, also origin of * projection coord system * @param scale scale factor at tangent point, "normally 1.0 but * may be reduced" */ public Stereographic(double latt, double lont, double scale, double false_easting, double false_northing) { this.latt = Math.toRadians(latt); this.lont = Math.toRadians(lont); this.scale = scale * EARTH_RADIUS; this.falseEasting = false_easting; this.falseNorthing = false_northing; precalculate(); origin = new LatLonPointImpl(latt, lont); addParameter(ATTR_NAME, "stereographic"); addParameter("longitude_of_projection_origin", lont); addParameter("latitude_of_projection_origin", latt); addParameter("scale_factor_at_projection_origin", scale); if ((false_easting != 0.0) || (false_northing != 0.0)) { addParameter("false_easting", false_easting); addParameter("false_northing", false_northing); addParameter("units", "km"); } }