MGRSRef Constructor (String, Boolean) |
doogal.co.uk Home
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})
Namespace: DotNetCoordsAssembly: DotNetCoords (in DotNetCoords.dll) Version: 1.0.0.16 (1.0.0.16)
Syntax public MGRSRef(
string gridRef,
bool isBessel
)
Public Sub New (
gridRef As String,
isBessel As Boolean
)
public:
MGRSRef(
String^ gridRef,
bool isBessel
)
new :
gridRef : string *
isBessel : bool -> MGRSRef
Parameters
- gridRef
- Type: SystemString
a string to create an MGRS reference from. - isBessel
- Type: SystemBoolean
True if the parameters represent an MGRS reference using the
Bessel 1841 ellipsoid; false is the parameters represent an MGRS
reference using the GRS 1980, International or WGS84 ellipsoids.
Exceptions See Also