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

The Web Mercator projection. More...

#include <WebMercatorProjection.h>

Inheritance diagram for olp::geo::WebMercatorProjection:
Inheritance graph
[legend]
Collaboration diagram for olp::geo::WebMercatorProjection:
Collaboration graph
[legend]

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...
 

Detailed Description

The Web Mercator projection.

The world and geographic coordinates are related in the following way:

Member Function Documentation

◆ GetGeoBounds()

GeoRectangle olp::geo::WebMercatorProjection::GetGeoBounds ( ) const
overridevirtual

Gets the geodetic bounds represented by the projection.

Returns
The geodetic rectangle.

Implements olp::geo::IProjection.

◆ Project()

bool olp::geo::WebMercatorProjection::Project ( const GeoCoordinates3d geo_point,
WorldCoordinates world_point 
) const
overridevirtual

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.

Implements olp::geo::IProjection.

◆ Unproject()

bool olp::geo::WebMercatorProjection::Unproject ( const WorldCoordinates world_point,
GeoCoordinates3d geo_point 
) const
overridevirtual

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.

Implements olp::geo::IProjection.

◆ WorldExtent()

WorldAlignedBox olp::geo::WebMercatorProjection::WorldExtent ( double  minimum_altitude,
double  maximum_altitude 
) const
overridevirtual

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.

Implements olp::geo::IProjection.


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