|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gicentre.utils.spatial.UTM
org.gicentre.utils.spatial.OSGB
public class OSGB
Class for representing the Ordnance Survey GB, National Grid coordinate system. This is a UTM transformation with a modified scale factor and transformed local origin. Can be used to convert between OSGB National Grid and longitude/latitude coordinate systems. See www.ordnancesurvey.co.uk/oswebsite/gps/information/coordinatesystemsinfo/guidecontents for details of the transformation.
Field Summary |
---|
Fields inherited from class org.gicentre.utils.spatial.UTM |
---|
FROM_LAT_LONG, TO_LAT_LONG |
Constructor Summary | |
---|---|
OSGB()
Initialises the transformer assuming a forward transformation is into OSGB coordinates. |
|
OSGB(int direction)
Initialises the transformer. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Provides a general description of the transformation. |
processing.core.PVector |
invTransformCoords(processing.core.PVector p)
Performs an inverse OSGB to longitude/latitude transform of the given location. |
processing.core.PVector |
transformCoords(processing.core.PVector p)
Performs a forward longitude/latitude to OSGB transformation of the given location. |
Methods inherited from class org.gicentre.utils.spatial.UTM |
---|
doInterpolation, getEllipsoid, getZone, getZoneLetter, getZoneNumber, latLongToUTM, latLongToUTM, setInterpolation, setZone, setZone, UTMToLatLong, UTMToLatLong |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OSGB()
public OSGB(int direction)
direction
- Indicates whether transforming to or from longitude/latitude.Method Detail |
---|
public processing.core.PVector transformCoords(processing.core.PVector p)
transformCoords
in interface MapProjection
transformCoords
in class UTM
p
- Point coordinates to transform
public processing.core.PVector invTransformCoords(processing.core.PVector p)
invTransformCoords
in interface MapProjection
invTransformCoords
in class UTM
p
- Point coordinates to transform.
public java.lang.String getDescription()
getDescription
in interface MapProjection
getDescription
in class UTM
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |