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.
|Constructor and Description|
Creates a Transverse Mercator projection from the given parameters.
|Modifier and Type||Method and Description|
Returns the sequence of normalization →
Transforms the specified (η, ξ) coordinates and stores the result in
Converts the specified (λ,φ) coordinate (units in radians) and stores the result in
computeHashCode, equals, getContextualParameters, getParameterDescriptors, getParameterValues, inverse, tryConcatenate
createTransformedShape, derivative, getSourceDimensions, getTargetDimensions, transform
derivative, equals, formatTo, hashCode, isIdentity, transform, transform, transform, transform, transform
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public TransverseMercator(OperationMethod method, Parameters parameters)
methodargument 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.
factory- the factory to use for creating the transform.
FactoryException- if an error occurred while creating a transform.
public Matrix transform(double srcPts, int srcOff, double dstPts, int dstOff, boolean derivate) throws ProjectionException
dstPts. In addition, opportunistically computes the projection derivative if
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.
truefor computing the derivative, or
falseif not needed.
ProjectionException- if the coordinate can not be converted.
MathTransforms.derivativeAndTransform(MathTransform, double, int, double, int)
protected void inverseTransform(double srcPts, int srcOff, double dstPts, int dstOff) throws ProjectionException
dstPts(angles in radians).
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.