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:
DotNetCoords
Assembly:
DotNetCoords (in DotNetCoords.dll) Version: 1.0.0.22 (1.0.0.22)
Syntax public MGRSRef(
string gridRef,
bool isBessel = false
)
Public Sub New (
gridRef As String,
Optional isBessel As Boolean = false
)
public:
MGRSRef(
String^ gridRef,
bool isBessel = false
)
new :
gridRef : string *
?isBessel : bool
(* Defaults:
let _isBessel = defaultArg isBessel false
*)
-> MGRSRef
Parameters
- gridRef
- Type: SystemString
a string to create an MGRS reference from. - isBessel (Optional)
- 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