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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionucar.unidata.geoloc.ProjectionImplbooleancrossSeam(ucar.unidata.geoloc.ProjectionPoint p1, ucar.unidata.geoloc.ProjectionPoint p2) booleanstatic EllipsoidMercatorgetInstance(double longitudeOrigin, double standardParallel, double scaleFactor, double falseEasting, double falseNorthing, double semiMajor, double semiMinor, double earthRadius, String units) Creates an object instance.inthashCode()ucar.unidata.geoloc.ProjectionPointlatLonToProj(ucar.unidata.geoloc.LatLonPoint latLon, ucar.unidata.geoloc.ProjectionPointImpl result) ucar.unidata.geoloc.LatLonPointprojToLatLon(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, setNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
constructCopyin 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:
paramsToStringin interfaceucar.unidata.geoloc.Projection- Specified by:
paramsToStringin classucar.unidata.geoloc.ProjectionImpl
-
toString
- Overrides:
toStringin classucar.unidata.geoloc.ProjectionImpl
-
crossSeam
public boolean crossSeam(ucar.unidata.geoloc.ProjectionPoint p1, ucar.unidata.geoloc.ProjectionPoint p2) - Specified by:
crossSeamin interfaceucar.unidata.geoloc.Projection- Specified by:
crossSeamin classucar.unidata.geoloc.ProjectionImpl
-
equals
- Specified by:
equalsin interfaceucar.unidata.geoloc.Projection- Specified by:
equalsin 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:
latLonToProjin interfaceucar.unidata.geoloc.Projection- Specified by:
latLonToProjin classucar.unidata.geoloc.ProjectionImpl
-
projToLatLon
public ucar.unidata.geoloc.LatLonPoint projToLatLon(ucar.unidata.geoloc.ProjectionPoint xy, ucar.unidata.geoloc.LatLonPointImpl result) - Specified by:
projToLatLonin interfaceucar.unidata.geoloc.Projection- Specified by:
projToLatLonin classucar.unidata.geoloc.ProjectionImpl
-