LuciadCPillar C# 2023.1.04
|
Class to format points as MGRS or UTM/UPS coordinates. More...
Classes | |
class | Builder |
Builder for creating luciad::MgrsFormat. More... | |
Public Member Functions | |
MgrsFormat (Luciad.Grids.Mgrs.MgrsFormat other) | |
Luciad.Grids.Mgrs.MgrsFormat.Builder | AsBuilder () |
Creates a new builder initialized with all the properties of this style. More... | |
void | Dispose () |
string | Format (Luciad.Geometries.Point lonLatPoint) |
Formats the given point or the given (lon,lat) pair as an MGRS or UTM/UPS coordinate string. More... | |
Luciad.Geometries.Point | Parse (string coordinateString) |
Parses the given MGRS or UTM/UPS coordinate string into a point with WGS84 lon lat coordinates. More... | |
Static Public Member Functions | |
static Luciad.Grids.Mgrs.MgrsFormat.Builder | NewBuilder () |
Creates a new builder with the default values. More... | |
Properties | |
string | CoordinateSeparator [get] |
Luciad.Grids.Mgrs.MgrsFormatType | FormatType [get] |
Luciad.Grids.Mgrs.MgrsFormatPrecision | Precision [get] |
string | ZoneSeparator [get] |
Class to format points as MGRS or UTM/UPS coordinates.
This class offers methods to format coordinates into either UTM MGRS, UPS MGRS, UTM or UPS notation. The UTM MGRS and UTM notations are used for coordinates within the UTM latitude bounds. For points in the polar regions, outside the UTM latitude bounds, the UPS MGRS and UPS notations are used. Construction of this class is done through the Builder design pattern mechanism. Example usage:
2023.1
|
inline |
|
inline |
Creates a new builder initialized with all the properties of this style.
the new builder.
|
inline |
|
inline |
Formats the given point or the given (lon,lat) pair as an MGRS or UTM/UPS coordinate string.
lonLatPoint
the point to be formatted. The reference of the point must be WGS84.
the formatted string.
luciad::InvalidArgumentException
when the the point cannot be formatted.
|
inlinestatic |
Creates a new builder with the default values.
the new builder.
|
inline |
Parses the given MGRS or UTM/UPS coordinate string into a point with WGS84 lon lat coordinates.
coordinateString
a MGRS coordinate string
the coordinate reference.
luciad::ParseException
when the coordinate string cannot be parsed.
|
get |
|
get |
|
get |
|
get |