|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gicentre.utils.spatial.Swiss
public class Swiss
Class for representing the Swiss coordinate system. This is an oblique Mercator projection with a 90 degree azimuth, centre at the the old observatory at Bern and scale factor of 1.0.
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 | |
---|---|
Swiss()
Initialises the transformer assuming a forward transformation is from longitude/latitude to Swiss coordinates. |
|
Swiss(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). |
java.lang.String |
getDescription()
Provides a general description of the transformation. |
Ellipsoid |
getEllipsoid()
Reports the ellipsoid used in the transformation. |
processing.core.PVector |
invTransformCoords(processing.core.PVector p)
Performs an inverse Swiss grid to longitude/latitude transform on the given location. |
processing.core.PVector |
latLongToSwiss(processing.core.PVector p)
Converts the given longitude/latitude coordinates into Swiss grid. |
void |
setInterpolation(boolean doInterpolation)
Sets whether the transformation should use nearest neighbour (false) or some interpolator (true). |
processing.core.PVector |
swissToLatLong(processing.core.PVector p)
Converts the given Swiss coordinates to longitude/latitude location. |
processing.core.PVector |
transformCoords(processing.core.PVector p)
Performs a forward longitude/latitude to Swiss 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 Swiss()
public Swiss(int direction)
direction
- Indicates whether transforming to or from longitude/latitude.Method Detail |
---|
public processing.core.PVector latLongToSwiss(processing.core.PVector p)
p
- Longitude/latitude point. Longitude varies within +-180 degrees, latitude within +-90 degrees.
public processing.core.PVector swissToLatLong(processing.core.PVector p)
p
- Location of point as an easting and northing in the Swiss projection (metres from local origin).
public processing.core.PVector transformCoords(processing.core.PVector p)
transformCoords
in interface MapProjection
p
- Point coordinates to transform.
public processing.core.PVector invTransformCoords(processing.core.PVector p)
invTransformCoords
in interface MapProjection
p
- Point 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |