Loading...
Searching...
No Matches
Forward and inverse WGS-84 Transverse Mercator conversion for one UTM zone.
More...
#include <map_projection.h>
|
| | MapProjection (double latitude, double longitude) |
| | Choose the UTM zone and hemisphere from a representative coordinate.
|
| int | epsg () const |
| | Get the CRS identifier for this WGS-84 UTM zone.
|
| double | centralMeridian () const |
| | Return the selected zone's central meridian in radians.
|
| double | convergence (double latitude, double longitude) const |
| | Estimate grid convergence in degrees at a geographic position.
|
| double | scale (double latitude, double longitude) const |
| | Estimate local UTM point scale at a geographic position.
|
| std::pair< double, double > | forward (double latitude, double longitude) const |
| | Project a geographic position into UTM easting and northing.
|
| std::pair< double, double > | inverse (double east, double north) const |
| | Convert UTM easting/northing back to WGS-84 latitude/longitude.
|
|
| static constexpr double | a = 6378137 |
| static constexpr double | e2 = 0.0066943799901413165 |
| static constexpr double | k = 0.9996 |
| static constexpr double | radians = 0.01745329251994329577 |
Forward and inverse WGS-84 Transverse Mercator conversion for one UTM zone.
This projection locates simulator imagery; it does not establish camera calibration, relief correction, or surveyed positional accuracy.
Definition at line 46 of file map_projection.h.
◆ MapProjection()
| pangea_survey::MapProjection::MapProjection |
( |
double | latitude, |
|
|
double | longitude ) |
|
inline |
Choose the UTM zone and hemisphere from a representative coordinate.
- Parameters
-
| [in] | latitude | WGS-84 latitude in degrees. |
| [in] | longitude | WGS-84 longitude in degrees. |
- Exceptions
-
| std::runtime_error | If the coordinate is outside supported UTM limits. |
Definition at line 71 of file map_projection.h.
◆ centralMeridian()
| double pangea_survey::MapProjection::centralMeridian |
( |
| ) |
const |
|
inline |
Return the selected zone's central meridian in radians.
Definition at line 78 of file map_projection.h.
◆ convergence()
| double pangea_survey::MapProjection::convergence |
( |
double | latitude, |
|
|
double | longitude ) const |
|
inline |
Estimate grid convergence in degrees at a geographic position.
Definition at line 80 of file map_projection.h.
◆ epsg()
| int pangea_survey::MapProjection::epsg |
( |
| ) |
const |
|
inline |
Get the CRS identifier for this WGS-84 UTM zone.
- Returns
- EPSG code in the northern 326xx or southern 327xx family.
Include the hemisphere so consumers can interpret false northing.
Definition at line 76 of file map_projection.h.
◆ forward()
| std::pair< double, double > pangea_survey::MapProjection::forward |
( |
double | latitude, |
|
|
double | longitude ) const |
|
inline |
Project a geographic position into UTM easting and northing.
- Parameters
-
| [in] | latitude | WGS-84 latitude in degrees. |
| [in] | longitude | WGS-84 longitude in degrees. |
- Returns
- Easting and northing in metres, including standard UTM false origins.
- Exceptions
-
| std::runtime_error | If the coordinate crosses the selected hemisphere or lies too far from the selected zone's central meridian. |
Definition at line 101 of file map_projection.h.
◆ inverse()
| std::pair< double, double > pangea_survey::MapProjection::inverse |
( |
double | east, |
|
|
double | north ) const |
|
inline |
Convert UTM easting/northing back to WGS-84 latitude/longitude.
- Parameters
-
| [in] | east | UTM easting in metres. |
| [in] | north | UTM northing in metres. |
- Returns
- Latitude and longitude in degrees.
- Exceptions
-
| std::runtime_error | If either projected coordinate is nonfinite. |
Definition at line 127 of file map_projection.h.
◆ scale()
| double pangea_survey::MapProjection::scale |
( |
double | latitude, |
|
|
double | longitude ) const |
|
inline |
Estimate local UTM point scale at a geographic position.
Definition at line 85 of file map_projection.h.
◆ zone()
| int pangea_survey::MapProjection::zone |
( |
double | latitude, |
|
|
double | longitude ) |
|
inlinestaticprivate |
Select a standard six-degree UTM zone.
- Parameters
-
| latitude | WGS-84 latitude in degrees. |
| longitude | WGS-84 longitude in degrees. |
- Returns
- Zone number from 1 to 60.
- Exceptions
-
| std::runtime_error | For nonfinite or unsupported coordinates. |
Clamp the positive antimeridian endpoint to zone 60 and use regular longitudinal bands rather than regional exceptions.
Definition at line 58 of file map_projection.h.
| double pangea_survey::MapProjection::a = 6378137 |
|
staticconstexprprivate |
◆ e2
| double pangea_survey::MapProjection::e2 = 0.0066943799901413165 |
|
staticprivate |
| double pangea_survey::MapProjection::k = 0.9996 |
|
staticprivate |
◆ north_
| bool pangea_survey::MapProjection::north_ |
|
private |
◆ radians
| double pangea_survey::MapProjection::radians = 0.01745329251994329577 |
|
staticconstexprprivate |
◆ zone_
| int pangea_survey::MapProjection::zone_ |
|
private |
The documentation for this class was generated from the following file: