|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjwo.landserf.process.proj.FrenchNTF
public class FrenchNTF
Class for representing the French national coordinate system. This is a Lambert conformal conic projection divided into one of 4 zones, plus a modified zone II projection for national maps.
| 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 | |
|---|---|
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(String zone)
Initialises the transformer assuming a forward transformation is from longitude/latitude to French National Grid coordinates. |
|
FrenchNTF(String zoneText,
int direction)
Initialises the transformer in the given direction. |
|
| Method Summary | |
|---|---|
boolean |
doInterpolation()
Indicates whether the transformation should use nearest neighbour (false) or some interpolator (true). |
Footprint |
frenchToLatLong(float easting,
float northing)
Converts the given French coordinates to longitude/latitude location assuming the zone defined in the constructor. |
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. |
Footprint |
invTransformCoords(Footprint fpIn)
Performs an inverse French grid to lat/long transform on the given location. |
Footprint |
latLongToFrench(float lng,
float lat)
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(String zoneText)
Sets the zone and projection parameters for subsequent transformations. |
Footprint |
transformCoords(Footprint fpIn)
Performs a forward longitude/latitude to French grid 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 FrenchNTF()
public FrenchNTF(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(String zoneText,
int direction)
zoneText - Lambert zone (one of '1', '2', '3', '4' or '2e').direction - Indicates whether transforming to or from longitude/latitude.| Method Detail |
|---|
public Footprint latLongToFrench(float lng,
float lat)
lng - Longitude (+-180.0).lat - Latitude (+-90.0).
public Footprint frenchToLatLong(float easting,
float northing)
easting - French easting.northing - French northing.
public Footprint transformCoords(Footprint fpIn)
transformCoords in interface TransformablefpIn - Incoming footprint to transform.
public Footprint invTransformCoords(Footprint fpIn)
invTransformCoords in interface TransformablefpIn - Incoming footprint to transform.
public String getDescription()
getDescription in interface Transformablepublic boolean doInterpolation()
doInterpolation in interface Transformablepublic void setInterpolation(boolean doInterpolation)
doInterpolation - True if transformation should perform some local interpolation.public Ellipsoid getEllipsoid()
public void setZone(String zoneText)
zoneText - Text describing zone. Should be one of '1', '2', '3', '4' or '2e'.public int getZoneNumber()
public char getZoneLetter()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||