Package uk.co.mccombe.mapping
Class Projection
java.lang.Object
uk.co.mccombe.mapping.CoordinateSystem
uk.co.mccombe.mapping.Projection
- Direct Known Subclasses:
Lambert
,Orthomorphic
,TransverseMercator
A Projection is an abstract base class for CoordinateSystems in which a a 3-dimensional
position is "projected" onto a surface to allow it to be represented in 2-dimensions.
-
Field Summary
Fields inherited from class uk.co.mccombe.mapping.CoordinateSystem
locus, ref, sph
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new instance of ProjectionProjection
(Position p, Ellipsoid e, Datum d) Create a new Projection for a Position. -
Method Summary
Methods inherited from class uk.co.mccombe.mapping.CoordinateSystem
defaultDatum, defaultEllipsoid, getDatum, getEllipsoid, getName, getPosition, getWGS84, parseDouble, toLatLong, toLatLongString, toString
-
Constructor Details
-
Projection
protected Projection()Creates a new instance of Projection -
Projection
Create a new Projection for a Position. The projection uses a specified Ellipsoid and Datum.- Parameters:
p
- The Positione
- Ellipsoid to used
- Datum to be used.
-
-
Method Details
-
toEN
Get a 2-dimensional representation of the projected position as easting and northing distances- Returns:
- An ENPair representing the projected Position
-
gridConvergence
public abstract double gridConvergence()Calculate Grid Convergence - the angle between the North axis and True North at this particular point.- Returns:
- Grid convergence (radians)
-