doogal.co.uk Home
The OSRef type exposes the following members.
Constructors
Name | Description | |
---|---|---|
OSRef(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.
| |
OSRef(LatLng) |
Convert this latitude and longitude into an OSGB (Ordnance Survey of Great
Britain) grid reference.
| |
OSRef(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
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToLatLng |
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()()()().) | |
ToSixFigureString |
Return a string representation of this OSGB grid reference using the
six-figure notation in the form XY123456.
| |
ToString |
Return a string representation of this OSGB grid reference showing the
easting and northing.
(Overrides Object..::..ToString()()()().) | |
ToTenFigureString |
Return a string representation of this OSGB grid reference using the
six-figure notation in the form XY 12345 67890.
|
Properties
Name | Description | |
---|---|---|
Datum |
Gets the datum.
(Inherited from CoordinateSystem.) | |
Easting |
Gets or sets the easting in metres relative to the origin of the British National Grid..
| |
Northing |
Gets or sets the northing in metres relative to the origin of the British National
Grid.
|