|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.landserf.process.proj.ObliqueMercator
public class ObliqueMercator
Class for representing Oblique Mercator projections. Includes forward and inverse transforms from and to longitude/latitude. Uses transformation equations from Snyder (1987) Atlas of Map Projections summarised at this Hotine Oblique Mercator page.
Field Summary | |
---|---|
static int |
FROM_LAT_LONG
Indicates a transformation from longitude/latitude |
static int |
TO_LAT_LONG
Indicates a transformation to longitude/latitude |
Constructor Summary | |
---|---|
ObliqueMercator(Ellipsoid ellipsoid)
Initialises the Oblique Mercator converter with the given ellipsoid and projection parameters. |
Method Summary | |
---|---|
boolean |
doInterpolation()
Indicates whether the transformation should use nearest neighbour (false) or some interpolator (true). |
String |
getDescription()
Provides a general description of the transformation. |
Ellipsoid |
getEllipsoid()
Reports the ellipsoid used in the transformation. |
Footprint |
invTransformCoords(Footprint fpIn)
Performs an inverse Oblique Mercator to lat/long transform on the given location. |
Footprint |
latLongToObliqueMercator(float lng,
float lat)
Converts the given ( lat ,lng ) coordinates into an oblique Mercator location. |
Footprint |
obliqueMercatorToLatLong(float easting,
float northing)
Converts the given Oblique Mercator coordinates into a longitude/latitude location. |
void |
setInterpolation(boolean doInterpolation)
Sets whether the transformation should use nearest neighbour (false) or some interpolator (true). |
Footprint |
transformCoords(Footprint fpIn)
Performs a forward longitude/latitude to Oblique Mercator transform on the given location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FROM_LAT_LONG
public static final int TO_LAT_LONG
Constructor Detail |
---|
public ObliqueMercator(Ellipsoid ellipsoid)
ellipsoid
- to use in projection.Method Detail |
---|
public Footprint transformCoords(Footprint fpIn)
transformCoords
in interface Transformable
fpIn
- Incoming footprint to transform.
public Footprint invTransformCoords(Footprint fpIn)
invTransformCoords
in interface Transformable
fpIn
- Incoming footprint to transform.
public String getDescription()
getDescription
in interface Transformable
public boolean doInterpolation()
doInterpolation
in interface Transformable
public void setInterpolation(boolean doInterpolation)
doInterpolation
- True if transformation should perform some local interpolation.public Footprint latLongToObliqueMercator(float lng, float lat)
lat
,lng
) coordinates into an oblique Mercator location.
Longitude/latitude should be in decimal degrees with positive North and positive East.
lng
- Longitude (+-180)lat
- Latitude (+-90)
public Footprint obliqueMercatorToLatLong(float easting, float northing)
easting
- Eastingnorthing
- Northing
public Ellipsoid getEllipsoid()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |