public class TransverseMercator extends Object implements Proj
Constructor and Description |
---|
TransverseMercator() |
Modifier and Type | Method and Description |
---|---|
private double |
ArcLengthOfMeridian(double phi)
ArcLengthOfMeridian
Computes the ellipsoidal distance from the equator to a point at a
given latitude.
|
private double |
footpointLatitude(double y)
FootpointLatitude
Computes the footpoint latitude for use in converting transverse
Mercator coordinates to ellipsoidal coordinates.
|
String |
getName()
Replies a human readable name of this projection.
|
String |
getProj4Id()
Replies the Proj.4 identifier.
|
void |
initialize(ProjParameters params)
Initialize the projection using the provided parameters.
|
double[] |
invproject(double x,
double y)
Converts x and y coordinates in the Transverse Mercator projection to
a latitude/longitude pair.
|
double[] |
project(double phi,
double lambda)
Converts a latitude/longitude pair to x and y coordinates in the
Transverse Mercator projection.
|
public TransverseMercator()
public String getName()
Proj
public String getProj4Id()
Proj
getProj4Id
in interface Proj
null
.public void initialize(ProjParameters params) throws ProjectionConfigurationException
Proj
initialize
in interface Proj
params
- The projection parametersProjectionConfigurationException
- in case parameters are not suitablepublic double[] project(double phi, double lambda)
public double[] invproject(double x, double y)
invproject
in interface Proj
x
- The easting of the point, in meters, divided by the semi major axis of the ellipsoidy
- The northing of the point, in meters, divided by the semi major axis of the ellipsoidprivate double ArcLengthOfMeridian(double phi)
phi
- Latitude of the point, in radiansprivate double footpointLatitude(double y)
y
- northing coordinate, in meters, divided by the semi major axis of the ellipsoid