Libosmium
2.20.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <projection.hpp>
Public Member Functions | |
Projection (std::string proj_string) | |
Projection (const char *proj_string) | |
Projection (int epsg) | |
Coordinates | operator() (osmium::Location location) const |
int | epsg () const noexcept |
std::string | proj_string () const |
Private Attributes | |
int | m_epsg |
std::string | m_proj_string |
CRS | m_crs_wgs84 {4326} |
CRS | m_crs_user |
Functor that does projection from WGS84 (EPSG:4326) to the given CRS.
If this Projection is initialized with the constructor taking an integer with the epsg code 4326, no projection is done. If it is initialized with epsg code 3857 the Osmium-internal implementation of the Mercator projection is used, otherwise this falls back to using the proj.4 library. Note that this "magic" does not work if you use any of the constructors taking a string.
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlinenoexcept |
|
inline |
Do coordinate transformation.
|
inline |
|
private |
|
private |
|
private |
|
private |