public class TransverseMercator extends NormalizedProjection
There are a number of versions of the Transverse Mercator projection including the Universal (UTM) and Modified (MTM) Transverses Mercator projections. In these cases the earth is divided into zones. For the UTM the zones are 6 degrees wide, numbered from 1 to 60 proceeding east from 180 degrees longitude, and between latitude 84 degrees North and 80 degrees South. The central meridian is taken as the center of the zone and the latitude of origin is the equator. A scale factor of 0.9996 and false easting of 500000 metres is used for all zones and a false northing of 10000000 metres is used for zones in the southern hemisphere.
Mercator
,
Serialized FormDefined in the sis-referencing
module
NormalizedProjection.ParameterRole
eccentricity, eccentricitySquared
Constructor and Description |
---|
TransverseMercator(OperationMethod method,
Parameters parameters)
Creates a Transverse Mercator projection from the given parameters.
|
Modifier and Type | Method and Description |
---|---|
MathTransform |
createMapProjection(MathTransformFactory factory)
Returns the sequence of normalization →
this → denormalization transforms
as a whole. |
protected void |
inverseTransform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff)
Transforms the specified (η, ξ) coordinates and stores the result in
dstPts (angles in radians). |
Matrix |
transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
boolean derivate)
Converts the specified (λ,φ) coordinate (units in radians) and stores the result in
dstPts . |
computeHashCode, equals, getContextualParameters, getParameterDescriptors, getParameterValues, inverse, tryConcatenate
createTransformedShape, derivative, getSourceDimensions, getTargetDimensions, transform
derivative, equals, formatTo, hashCode, isIdentity, transform, transform, transform, transform, transform
print, toString, toString, toWKT
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
derivative, isIdentity, toWKT, transform, transform, transform, transform, transform
public TransverseMercator(OperationMethod method, Parameters parameters)
method
argument can be the description of one of the following:
method
- description of the projection parameters.parameters
- the parameter values of the projection to create.public MathTransform createMapProjection(MathTransformFactory factory) throws FactoryException
this
→ denormalization transforms
as a whole. The transform returned by this method expects (longitude, latitude)
coordinates in degrees and returns (x,y) coordinates in metres.
The non-linear part of the returned transform will be this
transform, except if the ellipsoid
is spherical. In the later case, this
transform will be replaced by a simplified implementation.
createMapProjection
in class NormalizedProjection
factory
- the factory to use for creating the transform.FactoryException
- if an error occurred while creating a transform.ContextualParameters.completeTransform(MathTransformFactory, MathTransform)
public Matrix transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, boolean derivate) throws ProjectionException
dstPts
.
In addition, opportunistically computes the projection derivative if derivate
is true
.transform
in class NormalizedProjection
srcPts
- the array containing the source point coordinate, as (longitude, latitude)
angles in radians.srcOff
- the offset of the single coordinate to be converted in the source array.dstPts
- the array into which the converted coordinate is returned (may be the same than srcPts
).
Ordinates will be expressed in a dimensionless unit, as a linear distance on a unit sphere or ellipse.dstOff
- the offset of the location of the converted coordinate that is stored in the destination array.derivate
- true
for computing the derivative, or false
if not needed.null
if the derivate
argument is false
.ProjectionException
- if the coordinate can not be converted.AbstractMathTransform.derivative(DirectPosition)
,
AbstractMathTransform.transform(DirectPosition, DirectPosition)
,
MathTransforms.derivativeAndTransform(MathTransform, double[], int, double[], int)
protected void inverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff) throws ProjectionException
dstPts
(angles in radians).inverseTransform
in class NormalizedProjection
srcPts
- the array containing the source point coordinate, as linear distance on a unit sphere or ellipse.srcOff
- the offset of the point to be converted in the source array.dstPts
- the array into which the converted point coordinate is returned (may be the same than srcPts
).
Ordinates will be (longitude, latitude) angles in radians.dstOff
- the offset of the location of the converted point that is stored in the destination array.ProjectionException
- if the point can not be converted.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.