jwo.landserf.process.proj
Class OSGB

java.lang.Object
  extended byjwo.landserf.process.proj.UTM
      extended byjwo.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.2, 8th July, 2004.
Author:
Jo Wood.

Field Summary
 
Fields inherited from class jwo.landserf.process.proj.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
 String getDescription()
          Provides a general description of the transformation.
 Footprint invTransformCoords(Footprint fpIn)
          Performs an inverse OSGB to lat/long transform on the given location.
static void main(String[] args)
           
 Footprint transformCoords(Footprint fpIn)
          Performs a forward lat/long to OSGB transform on the given location.
 
Methods inherited from class jwo.landserf.process.proj.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

OSGB

public OSGB()
Initialises the transformer assuming a forward transformation is into OSGB coordinates. This is equivalent to calling the constructor with FROM_LAT_LONG as the parameter. Assumes that geographic data use the WGS84 ellipsoid. The transformer will convert data to/from the AIRY_1830 ellipsoid and perform a UTM transformation with a scale factor of 0.9996012717, geographic origin of 49N, 2W and local OSGB origin of E = 400 000, N = -100 000.


OSGB

public OSGB(int direction)
Initialises the transformer. Assumes that geographic data use the WGS84 ellipsoid. The transformer will convert data to/from the AIRY_1830 ellipsoid and perform a UTM transformation with a scale factor of 0.9996012717, geographic origin of 49N, 2W and local OSGB origin of E = 400 000, N = -100 000.

Parameters:
direction - Indicates whether tranforming to or from lat/long.
Method Detail

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-2005, last modified, 11th March, 2005