Utility class for computing distances and areas in metric units for GIS data using the WGS84 Spatial Reference System.
More...
#include <WGS84Ellipsoid.hpp>
Utility class for computing distances and areas in metric units for GIS data using the WGS84 Spatial Reference System.
◆ area()
Calculate the area of a Shape in m² by projection
- Parameters
-
| shape | Shape to calculate the area of |
- Deprecated:
- Exceptions
-
| runtime_error | when the projection to metric fails |
- Returns
- area in m²
◆ distance() [1/2]
| static double fishnet::WGS84Ellipsoid::distance |
( |
double |
lambdaA, |
|
|
double |
phiA, |
|
|
double |
lambdaB, |
|
|
double |
phiB, |
|
|
bool |
exact = true |
|
) |
| |
|
inlinestatic |
- Parameters
-
| lambdaA | longitude of point A |
| phiA | latitude of point A |
| lambdaB | longitude of point B |
| phiB | latitude of point B |
| exact | applies additional correction for the distances For further reading consider: https://de.wikipedia.org/wiki/Orthodrome |
- Returns
- distance between A and B in meters
◆ distance() [2/2]
Compute the distance between two points in metric units.
- Parameters
-
| p | point (long,lat) |
| q | point (long,lat) |
| exact | applies additional correction for the distances |
- Returns
- distance between p and q in meters
◆ flattening
| constexpr double fishnet::WGS84Ellipsoid::flattening = 1.0 / 298.257223563 |
|
staticconstexpr |
◆ radiusInMeter
| constexpr double fishnet::WGS84Ellipsoid::radiusInMeter = 6378137 |
|
staticconstexpr |
◆ spatialReference
| OGRSpatialReference fishnet::WGS84Ellipsoid::spatialReference = initWGS84() |
|
inlinestatic |
The documentation for this class was generated from the following file: