| org.geotools.referencing.operation.projection.MapProjection org.geotools.referencing.operation.projection.Mercator
All known Subclasses: org.geotools.referencing.operation.projection.Mercator2SP, org.geotools.referencing.operation.projection.Mercator1SP,
Mercator | abstract public class Mercator extends MapProjection (Code) | | Mercator Cylindrical Projection. The parallels and the meridians are straight lines and
cross at right angles; this projection thus produces rectangular charts. The scale is true
along the equator (by default) or along two parallels equidistant of the equator (if a scale
factor other than 1 is used). This projection is used to represent areas close to the equator.
It is also often used for maritime navigation because all the straight lines on the chart are
loxodrome lines, i.e. a ship following this line would keep a constant azimuth on its
compass.
This implementation handles both the 1 and 2 stardard parallel cases.
For
Mercator_1SP (EPSG code 9804), the line of contact is the equator.
For
Mercator_2SP (EPSG code 9805) lines of contact are symmetrical
about the equator.
References:
- John P. Snyder (Map Projections - A Working Manual,
U.S. Geological Survey Professional Paper 1395, 1987)
- "Coordinate Conversions and Transformations including Formulas",
EPSG Guidence Note Number 7, Version 19.
See Also: Mercator projection on MathWorld See Also: "mercator_1sp" on RemoteSensing.org See Also: "mercator_2sp" on RemoteSensing.org since: 2.1 version: $Id: Mercator.java 25697 2007-05-31 14:26:35Z desruisseaux $ author: André Gosselin author: Martin Desruisseaux author: Rueben Schulz author: Simone Giannecchini |
Inner Class :abstract static class Spherical extends Mercator | |
Constructor Summary | |
protected | Mercator(ParameterValueGroup parameters) Constructs a new map projection from the supplied parameters. |
Method Summary | |
public boolean | equals(Object object) Compares the specified object with this map projection for equality. | public ParameterValueGroup | getParameterValues() | public int | hashCode() Returns a hash value for this projection. | protected Point2D | inverseTransformNormalized(double x, double y, Point2D ptDst) Transforms the specified (x,y) coordinates
and stores the result in
ptDst . | protected Point2D | transformNormalized(double x, double y, Point2D ptDst) Transforms the specified (λ,φ) coordinates
(units in radians) and stores the result in
ptDst (linear distance
on a unit sphere). |
Mercator | protected Mercator(ParameterValueGroup parameters) throws ParameterNotFoundException(Code) | | Constructs a new map projection from the supplied parameters.
Parameters: parameters - The parameter values in standard units. throws: ParameterNotFoundException - if a mandatory parameter is missing. |
equals | public boolean equals(Object object)(Code) | | Compares the specified object with this map projection for equality.
|
getParameterValues | public ParameterValueGroup getParameterValues()(Code) | | |
hashCode | public int hashCode()(Code) | | Returns a hash value for this projection.
|
inverseTransformNormalized | protected Point2D inverseTransformNormalized(double x, double y, Point2D ptDst) throws ProjectionException(Code) | | Transforms the specified (x,y) coordinates
and stores the result in
ptDst .
|
transformNormalized | protected Point2D transformNormalized(double x, double y, Point2D ptDst) throws ProjectionException(Code) | | Transforms the specified (λ,φ) coordinates
(units in radians) and stores the result in
ptDst (linear distance
on a unit sphere).
|
Methods inherited from org.geotools.referencing.operation.projection.MapProjection | static boolean checkInverseTransform(double longitude, double latitude, Point2D expected, double tolerance)(Code)(Java Doc) static boolean checkInverseTransform(double longitude, double latitude, Point2D expected)(Code)(Java Doc) static boolean checkTransform(double x, double y, Point2D expected, double tolerance)(Code)(Java Doc) static boolean checkTransform(double x, double y, Point2D expected)(Code)(Java Doc) final double cphi2(double ts) throws ProjectionException(Code)(Java Doc) final double doubleValue(Collection expected, ParameterDescriptor param, ParameterValueGroup group) throws ParameterNotFoundException(Code)(Java Doc) static void ensureLatitudeEquals(ParameterDescriptor name, double y, double expected) throws IllegalArgumentException(Code)(Java Doc) static void ensureLatitudeInRange(ParameterDescriptor name, double y, boolean edge) throws IllegalArgumentException(Code)(Java Doc) static void ensureLongitudeInRange(ParameterDescriptor name, double x, boolean edge) throws IllegalArgumentException(Code)(Java Doc) final void ensureSpherical() throws IllegalArgumentException(Code)(Java Doc) public boolean equals(Object object)(Code)(Java Doc) static boolean equals(double value1, double value2)(Code)(Java Doc) abstract public ParameterDescriptorGroup getParameterDescriptors()(Code)(Java Doc) public ParameterValueGroup getParameterValues()(Code)(Java Doc) final public int getSourceDimensions()(Code)(Java Doc) final public int getTargetDimensions()(Code)(Java Doc) protected double getToleranceForAssertions(double longitude, double latitude)(Code)(Java Doc) public int hashCode()(Code)(Java Doc) final public MathTransform inverse()(Code)(Java Doc) abstract protected Point2D inverseTransformNormalized(double x, double y, Point2D ptDst) throws ProjectionException(Code)(Java Doc) boolean isExpectedParameter(Collection expected, ParameterDescriptor param)(Code)(Java Doc) final double msfn(double s, double c)(Code)(Java Doc) final void set(Collection expected, ParameterDescriptor param, ParameterValueGroup group, double value)(Code)(Java Doc) final public Point2D transform(Point2D ptSrc, Point2D ptDst) throws ProjectionException(Code)(Java Doc) final public void transform(double[] src, int srcOffset, double[] dest, int dstOffset, int numPts) throws ProjectionException(Code)(Java Doc) final public void transform(float[] src, int srcOffset, float[] dest, int dstOffset, int numPts) throws ProjectionException(Code)(Java Doc) abstract protected Point2D transformNormalized(double x, double y, Point2D ptDst) throws ProjectionException(Code)(Java Doc) final double tsfn(double phi, double sinphi)(Code)(Java Doc)
|
|
|