implements a simple spherical mercator projection. More...
#include <Projection.h>
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... | |
![]() | |
Projector & | operator= (const Projector &rhs)=default |
Projector & | operator= (Projector &&rhs) noexcept=default |
const Origin & | origin () 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 | |
![]() | |
using | Ptr = std::shared_ptr< Projector > |
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.
|
inlineoverridevirtual |
Project a point from lat/lon coordinates to a local coordinate system.
ForwardProjectionError | if projection is impossible |
Implements lanelet::Projector.
Definition at line 57 of file Projection.h.
|
default |
|
inlineexplicit |
Definition at line 25 of file Projection.h.
|
defaultnoexcept |
|
inlineoverridevirtual |
Project a point from local coordinates to global lat/lon coordinates.
ReverseProjectionError | if projection is impossible |
Implements lanelet::Projector.
Definition at line 64 of file Projection.h.
|
staticconstexprprivate |
Definition at line 72 of file Projection.h.