Libosmium  2.5.3
Fast and flexible C++ library for working with OpenStreetMap data
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
osmium::geom::CRS Class Reference

#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, ProjCRSDeleterm_crs
 

Friends

Coordinates transform (const CRS &src, const CRS &dest, Coordinates c)
 

Detailed Description

C++ wrapper for a Coordinate Reference System of the proj library.

Constructor & Destructor Documentation

osmium::geom::CRS::CRS ( const std::string &  crs)
inline
osmium::geom::CRS::CRS ( int  epsg)
inline

Member Function Documentation

projPJ osmium::geom::CRS::get ( ) const
inlineprivate
bool osmium::geom::CRS::is_geocent ( ) const
inline
bool osmium::geom::CRS::is_latlong ( ) const
inline

Friends And Related Function Documentation

Coordinates transform ( const CRS src,
const CRS dest,
Coordinates  c 
)
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.

Exceptions
osmmium::projection_errorif the projection fails

Member Data Documentation

std::unique_ptr<void, ProjCRSDeleter> osmium::geom::CRS::m_crs
private

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