#include <GeoPoint.h>
Public Member Functions | |
| MgrsPoint (LatLonPoint latLon) | |
| MgrsPoint (const std::string &mgrsText) | |
| ~MgrsPoint () | |
| LocationType | getCoordinates () const |
| LatLonPoint | getLatLonCoordinates () const |
| double | getEasting () const |
| double | getNorthing () const |
| int | getZone () const |
| std::string | getText () const |
| std::string | getZoneText () const |
| std::string | getScrCodeText () const |
This class stores an MGRS coordinate and provides common text formatting when retrieving the value. In addition to the text formatting, the raw component values can also be retrieved.
Definition at line 465 of file GeoPoint.h.
| MgrsPoint::MgrsPoint | ( | LatLonPoint | latLon | ) |
Creates an MGRS point based on a given latitude/longitude point.
This constructor automatically converts a latitude/longitude coordinate pair into an MGRS coordinate.
| latLon | The latitude/longitude coordinate to convert to an MGRS point. |
| MgrsPoint::MgrsPoint | ( | const std::string & | mgrsText | ) |
Creates an MGRS point based on its string representation.
| mgrsText | A string representation of the MGRS point. |
| MgrsPoint::~MgrsPoint | ( | ) |
Destroys the MGRS point.
| LocationType MgrsPoint::getCoordinates | ( | ) | const |
Retrieves the easting and northing components of the MGRS point.
| LatLonPoint MgrsPoint::getLatLonCoordinates | ( | ) | const |
Converts the MGRS point to a latitude/longitude point.
| double MgrsPoint::getEasting | ( | ) | const |
Returns the easting component value.
| double MgrsPoint::getNorthing | ( | ) | const |
Returns the northing component value.
| int MgrsPoint::getZone | ( | ) | const |
Returns the zone component value.
| std::string MgrsPoint::getText | ( | ) | const |
Returns the text representation of the MGRS point.
| std::string MgrsPoint::getZoneText | ( | ) | const |
Returns the zone component value as a formatted string.
| std::string MgrsPoint::getScrCodeText | ( | ) | const |
Returns the MGRS code representing a region in which the point resides.