jwo.landserf.process.proj
Class OSGB
java.lang.Object
jwo.landserf.process.proj.UTM
jwo.landserf.process.proj.OSGB
- All Implemented Interfaces:
- Transformable
- public class OSGB
- extends UTM
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 lat,long coordinate systems. See
www.gps.gov.uk/guidea.asp for details of the transformation.
- Version:
- 2.0 1st, October, 2003.
- Author:
- Jo Wood.
Constructor Summary |
OSGB(int direction)
Initialises the transformer using the AIRY_1830 ellipsoid,
a scale factor of 0.9996012717, georgaphic origin of 49N, 2W
and OSGB origin of E = 400 000, N = -100 000. |
Methods inherited from class jwo.landserf.process.proj.UTM |
doInterpolation, 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 |
OSGB
public OSGB(int direction)
- Initialises the transformer using the AIRY_1830 ellipsoid,
a scale factor of 0.9996012717, georgaphic origin of 49N, 2W
and OSGB origin of E = 400 000, N = -100 000.
- Parameters:
direction
- Indicates whether tranforming to or from lat/long.
main
public static void main(String[] args)
transformCoords
public Footprint transformCoords(Footprint fpIn)
- Performs a forward lat/long to OSGB transform on the given location.
- Specified by:
transformCoords
in interface Transformable
- Overrides:
transformCoords
in class UTM
- Parameters:
fpIn
- Incoming footprint to transform.
- Returns:
- Transformed footprint.
invTransformCoords
public Footprint invTransformCoords(Footprint fpIn)
- Performs an inverse OSGB to lat/long transform on the given location.
- Specified by:
invTransformCoords
in interface Transformable
- Overrides:
invTransformCoords
in class UTM
- Parameters:
fpIn
- Incoming footprint to transform.
- Returns:
- Transformed footprint.
getDescription
public String getDescription()
- Provides a general description of the transformation.
- Specified by:
getDescription
in interface Transformable
- Overrides:
getDescription
in class UTM
- Returns:
- Description of the transformation.
Copyright Jo Wood, 1996-2004, last modified, 19th March, 2004