olp-cpp-sdk  1.22.0
Public Member Functions | List of all members
olp::geo::IProjection Class Referenceabstract

The identity projection used to work with geographic and world coordinates. More...

#include <IProjection.h>

Inheritance diagram for olp::geo::IProjection:
Inheritance graph
[legend]

Public Member Functions

virtual GeoRectangle GetGeoBounds () const =0
 Gets the geodetic bounds represented by the projection. More...
 
virtual WorldAlignedBox WorldExtent (double minimum_altitude, double maximum_altitude) const =0
 Creates the extent of world coordinates. More...
 
virtual bool Project (const GeoCoordinates3d &geo_point, WorldCoordinates &world_point) const =0
 Checks whether the geographic coordinates (latitude, longitude, altitude) of a point correspond to its world coordinates (x,y,z). More...
 
virtual bool Unproject (const WorldCoordinates &world_point, GeoCoordinates3d &geo_point) const =0
 Checks whether the world coordinates (x,y,z) of a point correspond to its geographic coordinates (latitude, longitude, altitude). More...
 

Detailed Description

The identity projection used to work with geographic and world coordinates.

Member Function Documentation

◆ GetGeoBounds()

virtual GeoRectangle olp::geo::IProjection::GetGeoBounds ( ) const
pure virtual

Gets the geodetic bounds represented by the projection.

Returns
The geodetic rectangle.

Implemented in olp::geo::WebMercatorProjection, olp::geo::SphereProjection, olp::geo::IdentityProjection, and olp::geo::EquirectangularProjection.

◆ Project()

virtual bool olp::geo::IProjection::Project ( const GeoCoordinates3d geo_point,
WorldCoordinates world_point 
) const
pure virtual

Checks whether the geographic coordinates (latitude, longitude, altitude) of a point correspond to its world coordinates (x,y,z).

Parameters
geo_pointThe point position in geographic coordinates.
world_pointThe point position in world coordinates.
Returns
True if the coordinates correspond; false otherwise.

Implemented in olp::geo::WebMercatorProjection, olp::geo::SphereProjection, olp::geo::IdentityProjection, and olp::geo::EquirectangularProjection.

◆ Unproject()

virtual bool olp::geo::IProjection::Unproject ( const WorldCoordinates world_point,
GeoCoordinates3d geo_point 
) const
pure virtual

Checks whether the world coordinates (x,y,z) of a point correspond to its geographic coordinates (latitude, longitude, altitude).

Parameters
world_pointThe position in world coordinates.
geo_pointThe position in geographic coordinates.
Returns
True if the coordinates correspond; false otherwise.

Implemented in olp::geo::WebMercatorProjection, olp::geo::SphereProjection, olp::geo::IdentityProjection, and olp::geo::EquirectangularProjection.

◆ WorldExtent()

virtual WorldAlignedBox olp::geo::IProjection::WorldExtent ( double  minimum_altitude,
double  maximum_altitude 
) const
pure virtual

Creates the extent of world coordinates.

Parameters
minimum_altitudeThe minimum altitude in meters.
maximum_altitudeThe maximum altitude in meters.
Returns
The extent of world coordinates.

Implemented in olp::geo::WebMercatorProjection, olp::geo::SphereProjection, olp::geo::IdentityProjection, and olp::geo::EquirectangularProjection.


The documentation for this class was generated from the following file: