Libosmium
2.5.3
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <projection.hpp>
Classes | |
struct | ProjCRSDeleter |
Public Member Functions | |
CRS (const std::string &crs) | |
CRS (int epsg) | |
bool | is_latlong () const |
bool | is_geocent () const |
Private Member Functions | |
projPJ | get () const |
Private Attributes | |
std::unique_ptr< void, ProjCRSDeleter > | m_crs |
Friends | |
Coordinates | transform (const CRS &src, const CRS &dest, Coordinates c) |
C++ wrapper for a Coordinate Reference System of the proj library.
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
friend |
Transform coordinates from one CRS into another. Wraps the same function of the proj library.
Coordinates have to be in radians and are produced in radians.
osmmium::projection_error | if the projection fails |
|
private |