olp-cpp-sdk
1.22.0
|
A projection of geographic coordinates onto a sphere using the Earth radius. More...
#include <SphereProjection.h>
Public Member Functions | |
GeoRectangle | GetGeoBounds () const override |
Gets the geodetic bounds represented by the projection. More... | |
WorldAlignedBox | WorldExtent (double minimum_altitude, double maximum_altitude) const override |
Creates the extent of world coordinates. More... | |
bool | Project (const GeoCoordinates3d &geo_point, WorldCoordinates &world_point) const override |
Checks whether the geographic coordinates (latitude, longitude, altitude) of a point correspond to its world coordinates (x,y,z). More... | |
bool | Unproject (const WorldCoordinates &world_point, GeoCoordinates3d &geo_point) const override |
Checks whether the world coordinates (x,y,z) of a point correspond to its geographic coordinates (latitude, longitude, altitude). More... | |
A projection of geographic coordinates onto a sphere using the Earth radius.
The spherical projection defines the Earth-Centered, Earth-Fixed (ECEF) coordinate system (ECEF) by projecting geographic coordinates onto a sphere with a radius equal to the earth radius. The unit of world coordinates is meter.
The geographic coordinates map to the ECEF axes as follows:
|
overridevirtual |
Gets the geodetic bounds represented by the projection.
Implements olp::geo::IProjection.
|
overridevirtual |
Checks whether the geographic coordinates (latitude, longitude, altitude) of a point correspond to its world coordinates (x,y,z).
geo_point | The point position in geographic coordinates. |
world_point | The point position in world coordinates. |
Implements olp::geo::IProjection.
|
overridevirtual |
Checks whether the world coordinates (x,y,z) of a point correspond to its geographic coordinates (latitude, longitude, altitude).
world_point | The position in world coordinates. |
geo_point | The position in geographic coordinates. |
Implements olp::geo::IProjection.
|
overridevirtual |
Creates the extent of world coordinates.
minimum_altitude | The minimum altitude in meters. |
maximum_altitude | The maximum altitude in meters. |
Implements olp::geo::IProjection.