doogal.co.uk Home
The MGRSRef type exposes the following members.
Constructors
Name | Description | |
---|---|---|
MGRSRef(String) |
Create a new MGRS reference object from the given String. Must be correctly
formatted otherwise an IllegalArgumentException will be thrown. It is
assumed that this MGRS reference represents a point using the GRS 1980,
International or WGS84 ellipsoids.
| |
MGRSRef(UTMRef) |
Create a new MGRS reference object from the given UTM reference. It is
assumed that the UTMRef object is valid.
| |
MGRSRef(String, Boolean) |
Create a new MGRS reference object from the given String. Must be correctly
formatted otherwise an ArgumentException will be thrown.
Matching regex: (\d{1,2})([A-Z])([A-Z])([A-Z])(\d{2,10})
| |
MGRSRef(UTMRef, Boolean) |
Create a new MGRS reference object from the given UTM reference. It is
assumed that this MGRS reference represents a point using the GRS 1980,
International or WGS84 ellipsoids. It is assumed that the UTMRef object is
valid.
| |
MGRSRef(Int32, Char, Char, Char, Int32, Int32, Precision) |
Create a new MGRS reference object from the given paramaters. It is assumed
that this MGRS reference represents a point using the GRS 1980,
International or WGS84 ellipsoids. An IllegalArgumentException is thrown if
any of the parameters are invalid.
| |
MGRSRef(Int32, Char, Char, Char, Int32, Int32, Precision, Boolean) |
Create a new MGRS reference object from the given parameters. An
ArgumentException is thrown if any of the parameters are invalid.
|
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.) | |
IsBessel |
Determines whether this instance represents an MGRS reference using the
Bessel 1841 ellipsoid.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToLatLng |
Convert this MGRS reference to a latitude and longitude.
(Overrides CoordinateSystem..::..ToLatLng()()()().) | |
ToString()()()() |
Return a string representation of this MGRS Reference to whatever precision
this reference is set to.
(Overrides Object..::..ToString()()()().) | |
ToString(Precision) |
Return a String representation of this MGRS reference to 1m, 10m, 100m,
1000m or 10000m precision.
| |
ToUTMRef |
Convert this MGRS reference to an equivelent UTM reference.
This method based on http://www.stellman-greene.com/mgrs_to_utm/
|
Properties
Name | Description | |
---|---|---|
Datum |
Gets the datum.
(Inherited from CoordinateSystem.) | |
Easting |
Gets the easting.
| |
EastingId |
Gets the easting ID.
| |
Northing |
Gets the northing.
| |
NorthingId |
Gets the northing ID.
| |
Precision |
Gets the precision.
| |
UtmZoneChar |
Gets the UTM zone character representing the latitude.
| |
UtmZoneNumber |
Gets the UTM zone number representing the longitude.
|