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
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ucar.unidata.geoloc.ProjectionImpl
     
    boolean
    crossSeam(ucar.unidata.geoloc.ProjectionPoint p1, ucar.unidata.geoloc.ProjectionPoint p2)
     
    boolean
     
    getInstance(double longitudeOrigin, double standardParallel, double scaleFactor, double falseEasting, double falseNorthing, double semiMajor, double semiMinor, double earthRadius, String units)
    Creates an object instance.
    int
     
    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)
     
     

    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 class ucar.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

      public String paramsToString()
      Specified by:
      paramsToString in interface ucar.unidata.geoloc.Projection
      Specified by:
      paramsToString in class ucar.unidata.geoloc.ProjectionImpl
    • toString

      public String toString()
      Overrides:
      toString in class ucar.unidata.geoloc.ProjectionImpl
    • crossSeam

      public boolean crossSeam(ucar.unidata.geoloc.ProjectionPoint p1, ucar.unidata.geoloc.ProjectionPoint p2)
      Specified by:
      crossSeam in interface ucar.unidata.geoloc.Projection
      Specified by:
      crossSeam in class ucar.unidata.geoloc.ProjectionImpl
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface ucar.unidata.geoloc.Projection
      Specified by:
      equals in class ucar.unidata.geoloc.ProjectionImpl
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • latLonToProj

      public ucar.unidata.geoloc.ProjectionPoint latLonToProj(ucar.unidata.geoloc.LatLonPoint latLon, ucar.unidata.geoloc.ProjectionPointImpl result)
      Specified by:
      latLonToProj in interface ucar.unidata.geoloc.Projection
      Specified by:
      latLonToProj in class ucar.unidata.geoloc.ProjectionImpl
    • projToLatLon

      public ucar.unidata.geoloc.LatLonPoint projToLatLon(ucar.unidata.geoloc.ProjectionPoint xy, ucar.unidata.geoloc.LatLonPointImpl result)
      Specified by:
      projToLatLon in interface ucar.unidata.geoloc.Projection
      Specified by:
      projToLatLon in class ucar.unidata.geoloc.ProjectionImpl