doogal.co.uk Home



The OSRef type exposes the following members.

Constructors

  NameDescription
Public methodOSRef(String)
Take a string formatted as a 6, 8 or 10 figure OS grid reference (e.g. "TG514131") and create a new OSRef object that represents that grid reference. The first character must be H, N, S, O or T. The second character can be any uppercase character from A through Z excluding I.
Public methodOSRef(LatLng)
Convert this latitude and longitude into an OSGB (Ordnance Survey of Great Britain) grid reference.
Public methodOSRef(Double, Double)
Create a new Ordnance Survey grid reference using a given easting and northing. The easting and northing must be in metres and must be relative to the origin of the British National Grid.

Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToLatLng
Convert this OSGB grid reference to a latitude/longitude pair using the OSGB36 datum. Note that, the LatLng object may need to be converted to the WGS84 datum depending on the application.
(Overrides CoordinateSystem..::..ToLatLng()()()().)
Public methodToSixFigureString
Return a string representation of this OSGB grid reference using the six-figure notation in the form XY123456.
Public methodToString
Return a string representation of this OSGB grid reference showing the easting and northing.
(Overrides Object..::..ToString()()()().)
Public methodToTenFigureString
Return a string representation of this OSGB grid reference using the six-figure notation in the form XY 12345 67890.

Properties

  NameDescription
Public propertyDatum
Gets the datum.
(Inherited from CoordinateSystem.)
Public propertyEasting
Gets or sets the easting in metres relative to the origin of the British National Grid..
Public propertyNorthing
Gets or sets the northing in metres relative to the origin of the British National Grid.

See Also