#include <GeoPoint.h>
Public Member Functions | |
| UtmPoint (LatLonPoint latLon) | |
| UtmPoint (double dEasting, double dNorthing, int iZone, char hemisphere) | |
| ~UtmPoint () | |
| LocationType | getCoordinates () const |
| LatLonPoint | getLatLonCoordinates () const |
| double | getEasting () const |
| double | getNorthing () const |
| int | getZone () const |
| const char | getHemisphere () const |
| std::string | getText () const |
| std::string | getEastingText () const |
| std::string | getNorthingText () const |
| std::string | getZoneText () const |
This class stores a UTM coordinate and provides common text formatting when retrieving the value. In addition to the text formatting, the raw easting, northing, zone, and hemisphere values can also be retrieved.
Definition at line 320 of file GeoPoint.h.
| UtmPoint::UtmPoint | ( | LatLonPoint | latLon | ) |
Creates a UTM point based on a given latitude/longitude point.
This constructor automatically converts a latitude/longitude coordinate pair into a UTM coordinate.
| latLon | The latitude/longitude coordinate to convert to a UTM point. |
| UtmPoint::UtmPoint | ( | double | dEasting, | |
| double | dNorthing, | |||
| int | iZone, | |||
| char | hemisphere | |||
| ) |
Creates a UTM point based on initial easting, northing, zone, and hemisphere values.
| dEasting | The easting value. | |
| dNorthing | The northing value. | |
| iZone | The integer zone value. | |
| hemisphere | The hemisphere, as a character, which should be either 'N' or 'S'. |
| UtmPoint::~UtmPoint | ( | ) |
Destroys the UTM point.
| LocationType UtmPoint::getCoordinates | ( | ) | const |
Retrieves the easting and northing values.
| LatLonPoint UtmPoint::getLatLonCoordinates | ( | ) | const |
Converts the UTM point to a latitude/longitude point.
| double UtmPoint::getEasting | ( | ) | const |
| double UtmPoint::getNorthing | ( | ) | const |
| int UtmPoint::getZone | ( | ) | const |
Returns the zone value.
| const char UtmPoint::getHemisphere | ( | ) | const |
Returns the hemisphere value.
| std::string UtmPoint::getText | ( | ) | const |
Returns UTM point in a formatted string.
| std::string UtmPoint::getEastingText | ( | ) | const |
Returns the easting value as a formatted string.
| std::string UtmPoint::getNorthingText | ( | ) | const |
Returns the northing value as a formatted string.
| std::string UtmPoint::getZoneText | ( | ) | const |
Returns the zone value as a formatted string.