Class CartographicMapTransform
java.lang.Object
org.esa.snap.core.dataop.maptransf.CartographicMapTransform
- All Implemented Interfaces:
MapTransform
- Direct Known Subclasses:
AlbersEqualAreaConicDescriptor.AEAC,LambertConformalConicDescriptor.LCCT,StereographicDescriptor.ST,TransverseMercatorDescriptor.TMT
Deprecated.
An abstract base class for cartographic map-transformations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final doubleDeprecated.Semi-major parameter of ellipsoid (map scaling factor) in meter.protected final doubleDeprecated.The central meridian value in degree.protected final doubleDeprecated.Inverse semi-major parameter.protected final doubleDeprecated.The false easting (map x-offset) in map units.protected final doubleDeprecated.The false northing (map x-offset) in map units. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCartographicMapTransform(double centralMeridian, double falseEasting, double falseNorthing, double semiMajor) Deprecated.Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Forward project geographical co-ordinates into map co-ordinates.protected abstract Point2Dforward_impl(double lat, double lon, Point2D mapPoint) Deprecated.Worker method to be overridden by derived class.doubleDeprecated.Gets the central meridian parameter.doubleDeprecated.Gets the map X-offset (false easting) parameter.doubleDeprecated.Gets the map Y-offset (false northing) parameter.doubleDeprecated.Gets the map scaling factor parameter.doubleDeprecated.Gets the map scaling factor parameter.Deprecated.Inverse project map co-ordinates into geographical co-ordinates.protected abstract GeoPosinverse_impl(double x, double y, GeoPos geoPoint) Deprecated.Worker method to be overridden by derived class.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.esa.snap.core.dataop.maptransf.MapTransform
createDeepClone, getDescriptor, getParameterValues
-
Field Details
-
_centralMeridian
protected final double _centralMeridianDeprecated.The central meridian value in degree. -
_a
protected final double _aDeprecated.Semi-major parameter of ellipsoid (map scaling factor) in meter. -
_invA
protected final double _invADeprecated.Inverse semi-major parameter. -
_x0
protected final double _x0Deprecated.The false easting (map x-offset) in map units. -
_y0
protected final double _y0Deprecated.The false northing (map x-offset) in map units.
-
-
Constructor Details
-
CartographicMapTransform
protected CartographicMapTransform(double centralMeridian, double falseEasting, double falseNorthing, double semiMajor) Deprecated.Constructs a new instance.- Parameters:
centralMeridian- central meridian in degreefalseEasting- false easting (map x-offset) in map unitsfalseNorthing- false northing (map y-offset) in map unitssemiMajor- semi-major parameter of ellipsoid (map scaling factor) in map units
-
-
Method Details
-
getCentralMeridian
public double getCentralMeridian()Deprecated.Gets the central meridian parameter.- Returns:
- the central meridian
-
getSemiMajor
public double getSemiMajor()Deprecated.Gets the map scaling factor parameter.- Returns:
- the map scaling factor
-
getInverseSemiMajor
public double getInverseSemiMajor()Deprecated.Gets the map scaling factor parameter.- Returns:
- the map scaling factor
-
getFalseEasting
public double getFalseEasting()Deprecated.Gets the map X-offset (false easting) parameter.- Returns:
- the map X-offset
-
getFalseNorthing
public double getFalseNorthing()Deprecated.Gets the map Y-offset (false northing) parameter.- Returns:
- the map Y-offset
-
forward
Deprecated.Forward project geographical co-ordinates into map co-ordinates.- Specified by:
forwardin interfaceMapTransform- Parameters:
geoPoint- the source position in lat/lonmapPoint- the target map position in x/y (,ight be null, then a new object is created
-
inverse
Deprecated.Inverse project map co-ordinates into geographical co-ordinates.- Specified by:
inversein interfaceMapTransform- Parameters:
mapPoint- the source location in x/y map coordinatesgeoPoint- the target position in lat/lon (might be null, then a new object is created)
-
forward_impl
Deprecated.Worker method to be overridden by derived class. Performs the pure transformation. Prescaling, northing, easting etc is calculated in this class.- Parameters:
lat- latitude of source locationlon- longitude of source locationmapPoint- point on the map- Returns:
- the map coordinate
-
inverse_impl
Deprecated.Worker method to be overridden by derived class. Performs the pure transformation. Prescaling, northing, easting etc is calculated in this class.Should be overridden in order to perform transformation in 64-bit accuracy.
The default implementation simple returns
inverse_impl((float)x, (float)y, geoPoint).- Parameters:
x- map x coordinatey- map y coordinategeoPoint- point on the earth's surface- Returns:
- the geodetic co-ordinate
-
MapProjectioninstead.