public class FrenchNTF extends java.lang.Object implements MapProjection
Modifier and Type | Field and Description |
---|---|
static int |
FROM_LAT_LONG
Indicates a transformation from longitude/latitude.
|
static int |
TO_LAT_LONG
Indicates a transformation to longitude/latitude.
|
Constructor and Description |
---|
FrenchNTF()
Initialises the transformer assuming a forward transformation is from
longitude/latitude to French National Grid coordinates using the national 'Lambert IIe'.
|
FrenchNTF(int direction)
Initialises the transformer in the given direction assuming the
national 'Lambert IIe' projection.
|
FrenchNTF(java.lang.String zone)
Initialises the transformer assuming a forward transformation is from
longitude/latitude to French National Grid coordinates.
|
FrenchNTF(java.lang.String zoneText,
int direction)
Initialises the transformer in the given direction.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doInterpolation()
Indicates whether the transformation should use nearest neighbour (false)
or some interpolator (true).
|
processing.core.PVector |
frenchToLatLong(processing.core.PVector p)
Converts the given French coordinates to longitude/latitude location assuming
the zone defined in the constructor.
|
java.lang.String |
getDescription()
Provides a general description of the transformation.
|
Ellipsoid |
getEllipsoid()
Reports the ellipsoid used in the transformation (Clarke 1880).
|
char |
getZoneLetter()
Reports the Lambert zone letter.
|
int |
getZoneNumber()
Reports the Lambert zone number used for the projection.
|
processing.core.PVector |
invTransformCoords(processing.core.PVector p)
Performs an inverse French grid to lat/long transform on the given location.
|
processing.core.PVector |
latLongToFrench(processing.core.PVector p)
Converts the given longitude/latitude coordinates into Lambert conformal conic using
the appropriate zone.
|
void |
setInterpolation(boolean doInterpolation)
Sets whether the transformation should use nearest neighbour (false)
or some interpolator (true).
|
void |
setZone(java.lang.String zoneText)
Sets the zone and projection parameters for subsequent transformations.
|
processing.core.PVector |
transformCoords(processing.core.PVector p)
Performs a forward longitude/latitude to French grid transform on the given location.
|
public static final int FROM_LAT_LONG
public static final int TO_LAT_LONG
public FrenchNTF()
public FrenchNTF(java.lang.String zone)
zone
- Lambert zone (one of "1", "2", "3", "4" or "2e")public FrenchNTF(int direction)
direction
- Indicates whether transforming to or from longitude/latitude.public FrenchNTF(java.lang.String zoneText, int direction)
zoneText
- Lambert zone (one of '1', '2', '3', '4' or '2e').direction
- Indicates whether transforming to or from longitude/latitude.public processing.core.PVector latLongToFrench(processing.core.PVector p)
p
- Longitude/latitude point. Longitude varies within +-180 degrees, latitude within +-90 degrees.public processing.core.PVector frenchToLatLong(processing.core.PVector p)
p
- Location of point as an easting and northing in the French NTF projection (metres from local origin).public processing.core.PVector transformCoords(processing.core.PVector p)
transformCoords
in interface MapProjection
p
- point location coordinates to transform.public processing.core.PVector invTransformCoords(processing.core.PVector p)
invTransformCoords
in interface MapProjection
p
- point location coordinates to transform.public java.lang.String getDescription()
getDescription
in interface MapProjection
public boolean doInterpolation()
public void setInterpolation(boolean doInterpolation)
doInterpolation
- True if transformation should perform some local interpolation.public Ellipsoid getEllipsoid()
public void setZone(java.lang.String zoneText)
zoneText
- Text describing zone. Should be one of '1', '2', '3', '4' or '2e'.public int getZoneNumber()
public char getZoneLetter()