Utility class for converting between latitude/longitude and UTM. More...
#include <utm_util.h>
Classes | |
| class | UtmData |
| The actual UTM conversion processing takes place in this helper class, which is a singleton due to the large memory footprint of the underlying PROJ.4 projections library structures. More... | |
Public Member Functions | |
| void | ToLatLon (int zone, char band, double easting, double northing, double &latitude, double &longitude) const |
| Convert UTM easting and northing to WGS84 latitude and longitude. | |
| void | ToUtm (double latitude, double longitude, int &zone, char &band, double &easting, double &northing) const |
| Convert WGS84 latitude and longitude to UTM. | |
| void | ToUtm (double latitude, double longitude, double &easting, double &northing) const |
| Convert WGS84 latitude and longitude to UTM. | |
| UtmUtil () | |
Private Types | |
| typedef boost::serialization::singleton < UtmData > | UtmDataSingleton |
Private Attributes | |
| const UtmData & | utm_data_ |
Utility class for converting between latitude/longitude and UTM.
Initialization of this class is costly, so it should be created on startup and reused.
Definition at line 62 of file utm_util.h.
typedef boost::serialization::singleton<UtmData> swri_transform_util::UtmUtil::UtmDataSingleton [private] |
Definition at line 175 of file utm_util.h.
| void swri_transform_util::UtmUtil::ToLatLon | ( | int | zone, |
| char | band, | ||
| double | easting, | ||
| double | northing, | ||
| double & | latitude, | ||
| double & | longitude | ||
| ) | const |
Convert UTM easting and northing to WGS84 latitude and longitude.
| [in] | zone | UTM zone. |
| [in] | band | UTM band. |
| [in] | easting | UTM easting in meters. |
| [in] | northing | UTM northing in meters. |
| [out] | latitude | WGS84 latitude in degrees. |
| [out] | longitude | WGS84 longitude in degrees. |
| void swri_transform_util::UtmUtil::ToUtm | ( | double | latitude, |
| double | longitude, | ||
| int & | zone, | ||
| char & | band, | ||
| double & | easting, | ||
| double & | northing | ||
| ) | const |
Convert WGS84 latitude and longitude to UTM.
| [in] | latitude | Latitude value in degrees. |
| [in] | longitude | Longitude value in degrees. |
| [out] | zone | UTM zone. |
| [out] | band | UTM band. |
| [out] | easting | UTM easting in meters. |
| [out] | northing | UTM northing in meters. |
| void swri_transform_util::UtmUtil::ToUtm | ( | double | latitude, |
| double | longitude, | ||
| double & | easting, | ||
| double & | northing | ||
| ) | const |
Convert WGS84 latitude and longitude to UTM.
| [in] | latitude | Latitude value in degrees. |
| [in] | longitude | Longitude value in degrees. |
| [out] | easting | UTM easting in meters. |
| [out] | northing | UTM northing in meters. |
const UtmData& swri_transform_util::UtmUtil::utm_data_ [private] |
Definition at line 177 of file utm_util.h.