doogal.co.uk Home



The MGRSRef type exposes the following members.

Constructors

  NameDescription
Public methodMGRSRef(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.
Public methodMGRSRef(UTMRef)
Create a new MGRS reference object from the given UTM reference. It is assumed that the UTMRef object is valid.
Public methodMGRSRef(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})
Public methodMGRSRef(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.
Public methodMGRSRef(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.
Public methodMGRSRef(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

  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.)
Public methodIsBessel
Determines whether this instance represents an MGRS reference using the Bessel 1841 ellipsoid.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToLatLng
Convert this MGRS reference to a latitude and longitude.
(Overrides CoordinateSystem..::..ToLatLng()()()().)
Public methodToString()()()()
Return a string representation of this MGRS Reference to whatever precision this reference is set to.
(Overrides Object..::..ToString()()()().)
Public methodToString(Precision)
Return a String representation of this MGRS reference to 1m, 10m, 100m, 1000m or 10000m precision.
Public methodToUTMRef
Convert this MGRS reference to an equivelent UTM reference. This method based on http://www.stellman-greene.com/mgrs_to_utm/

Properties

  NameDescription
Public propertyDatum
Gets the datum.
(Inherited from CoordinateSystem.)
Public propertyEasting
Gets the easting.
Public propertyEastingId
Gets the easting ID.
Public propertyNorthing
Gets the northing.
Public propertyNorthingId
Gets the northing ID.
Public propertyPrecision
Gets the precision.
Public propertyUtmZoneChar
Gets the UTM zone character representing the latitude.
Public propertyUtmZoneNumber
Gets the UTM zone number representing the longitude.

See Also