Package noaa.coastwatch.util.trans.cdm
Class EllipsoidMercator
java.lang.Object
ucar.unidata.geoloc.ProjectionImpl
noaa.coastwatch.util.trans.cdm.EllipsoidMercator
- All Implemented Interfaces:
Serializable
,ucar.unidata.geoloc.Projection
public class EllipsoidMercator
extends ucar.unidata.geoloc.ProjectionImpl
The
EllipsoidMercator
class performs Mercator projection
calculations for an ellipsoid earth model, wrapped for use with the NetCDF
Java library.- Since:
- 3.7.1
- Author:
- Peter Hollemans
- See Also:
-
Field Summary
Fields inherited from class ucar.unidata.geoloc.ProjectionImpl
atts, defaultMapArea, EARTH_RADIUS, INDEX_LAT, INDEX_LON, INDEX_X, INDEX_Y, isLatLon, name, PI, PI_OVER_2, PI_OVER_4, TOLERANCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionucar.unidata.geoloc.ProjectionImpl
boolean
crossSeam
(ucar.unidata.geoloc.ProjectionPoint p1, ucar.unidata.geoloc.ProjectionPoint p2) boolean
static EllipsoidMercator
getInstance
(double longitudeOrigin, double standardParallel, double scaleFactor, double falseEasting, double falseNorthing, double semiMajor, double semiMinor, double earthRadius, String units) Creates an object instance.int
hashCode()
ucar.unidata.geoloc.ProjectionPoint
latLonToProj
(ucar.unidata.geoloc.LatLonPoint latLon, ucar.unidata.geoloc.ProjectionPointImpl result) ucar.unidata.geoloc.LatLonPoint
projToLatLon
(ucar.unidata.geoloc.ProjectionPoint xy, ucar.unidata.geoloc.LatLonPointImpl result) toString()
Methods inherited from class ucar.unidata.geoloc.ProjectionImpl
addParameter, addParameter, addParameter, findProjectionParameter, getClassName, getDefaultMapArea, getDefaultMapAreaLL, getHeader, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, projToLatLonBBold, setDefaultMapArea, setName
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ucar.unidata.geoloc.Projection
latLonToProj, projToLatLon
-
Constructor Details
-
EllipsoidMercator
protected EllipsoidMercator()
-
-
Method Details
-
constructCopy
public ucar.unidata.geoloc.ProjectionImpl constructCopy()- Specified by:
constructCopy
in classucar.unidata.geoloc.ProjectionImpl
-
getInstance
public static EllipsoidMercator getInstance(double longitudeOrigin, double standardParallel, double scaleFactor, double falseEasting, double falseNorthing, double semiMajor, double semiMinor, double earthRadius, String units) Creates an object instance.- Parameters:
longitudeOrigin
- the longitude of the origin or Double.NaN for the default (0.0).standardParallel
- the standard parallel or Double.NaN for the default (0.0).scaleFactor
- the scale factor or Double.NaN for the default (1.0). If both standardParallel and scaleFactor are speficied, standardParallel takes precedence.falseEasting
- the false easting or Double.NaN for the default (0.0).falseNorthing
- the false northing or Double.NaN for the default (0.0).semiMajor
- the semi-major axis of the ellipsoid in meters or Double.NaN for a sphere.semiMinor
- the semi-minor axis of the ellipsoid in meters or Double.NaN for a sphere.earthRadius
- the earth radius for the sphere in meters or Double.NaN for an ellipsoid. If not specified, the semi-major and semi-minor axes must be specified.units
- the units to use for XY projection point coordinate values.- Returns:
- the instance of the Mercator projection object.
-
paramsToString
- Specified by:
paramsToString
in interfaceucar.unidata.geoloc.Projection
- Specified by:
paramsToString
in classucar.unidata.geoloc.ProjectionImpl
-
toString
- Overrides:
toString
in classucar.unidata.geoloc.ProjectionImpl
-
crossSeam
public boolean crossSeam(ucar.unidata.geoloc.ProjectionPoint p1, ucar.unidata.geoloc.ProjectionPoint p2) - Specified by:
crossSeam
in interfaceucar.unidata.geoloc.Projection
- Specified by:
crossSeam
in classucar.unidata.geoloc.ProjectionImpl
-
equals
- Specified by:
equals
in interfaceucar.unidata.geoloc.Projection
- Specified by:
equals
in classucar.unidata.geoloc.ProjectionImpl
-
hashCode
public int hashCode() -
latLonToProj
public ucar.unidata.geoloc.ProjectionPoint latLonToProj(ucar.unidata.geoloc.LatLonPoint latLon, ucar.unidata.geoloc.ProjectionPointImpl result) - Specified by:
latLonToProj
in interfaceucar.unidata.geoloc.Projection
- Specified by:
latLonToProj
in classucar.unidata.geoloc.ProjectionImpl
-
projToLatLon
public ucar.unidata.geoloc.LatLonPoint projToLatLon(ucar.unidata.geoloc.ProjectionPoint xy, ucar.unidata.geoloc.LatLonPointImpl result) - Specified by:
projToLatLon
in interfaceucar.unidata.geoloc.Projection
- Specified by:
projToLatLon
in classucar.unidata.geoloc.ProjectionImpl
-