Public Member Functions | Static Private Attributes | List of all members
lanelet::projection::SphericalMercatorProjector Class Reference

implements a simple spherical mercator projection. More...

#include <Projection.h>

Inheritance diagram for lanelet::projection::SphericalMercatorProjector:
Inheritance graph
[legend]

Public Member Functions

BasicPoint3d forward (const GPSPoint &p) const override
 Project a point from lat/lon coordinates to a local coordinate system. More...
 
 Projector (const Projector &rhs)=default
 
 Projector (Origin origin=Origin::defaultOrigin())
 
 Projector (Projector &&rhs) noexcept=default
 
GPSPoint reverse (const BasicPoint3d &p) const override
 Project a point from local coordinates to global lat/lon coordinates. More...
 
- Public Member Functions inherited from lanelet::Projector
Projectoroperator= (const Projector &rhs)=default
 
Projectoroperator= (Projector &&rhs) noexcept=default
 
const Originorigin () const
 Obtain the internal origin. More...
 
 Projector (const Projector &rhs)=default
 
 Projector (Origin origin=Origin::defaultOrigin())
 
 Projector (Projector &&rhs) noexcept=default
 
virtual ~Projector () noexcept=default
 

Static Private Attributes

static constexpr double EarthRadius {6378137.0}
 

Additional Inherited Members

- Public Types inherited from lanelet::Projector
using Ptr = std::shared_ptr< Projector >
 

Detailed Description

implements a simple spherical mercator projection.

Will be too unprecise for most calculations, but its fast and needs no external dependencies. If you want more, check out lanelet2_projection! This is the same projection that was used by lanelet1.

Definition at line 54 of file Projection.h.

Member Function Documentation

◆ forward()

BasicPoint3d lanelet::projection::SphericalMercatorProjector::forward ( const GPSPoint p) const
inlineoverridevirtual

Project a point from lat/lon coordinates to a local coordinate system.

Exceptions
ForwardProjectionErrorif projection is impossible

Implements lanelet::Projector.

Definition at line 57 of file Projection.h.

◆ Projector() [1/3]

lanelet::Projector::Projector
default

◆ Projector() [2/3]

lanelet::Projector::Projector
inlineexplicit

Definition at line 25 of file Projection.h.

◆ Projector() [3/3]

lanelet::Projector::Projector
defaultnoexcept

◆ reverse()

GPSPoint lanelet::projection::SphericalMercatorProjector::reverse ( const BasicPoint3d p) const
inlineoverridevirtual

Project a point from local coordinates to global lat/lon coordinates.

Exceptions
ReverseProjectionErrorif projection is impossible

Implements lanelet::Projector.

Definition at line 64 of file Projection.h.

Member Data Documentation

◆ EarthRadius

constexpr double lanelet::projection::SphericalMercatorProjector::EarthRadius {6378137.0}
staticconstexprprivate

Definition at line 72 of file Projection.h.


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


lanelet2_io
Author(s): Fabian Poggenhans
autogenerated on Thu Mar 6 2025 03:26:03