Click or drag to resize
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.15 (1.0.0.15)
Syntax
public MGRSRef(
	string gridRef,
	bool isBessel
)

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
ExceptionCondition
ArgumentExceptionif the given String is not correctly formatted.
See Also