Osmium
0.1
|
#include <geometry.hpp>
Public Member Functions | |
StreamFormat (const Geometry &geometry, bool with_srid) | |
Public Attributes | |
const Geometry & | m_geometry |
const bool | m_with_srid |
This helper class is used to allow writing geometries in different formats to an output stream.
If we'd just write
Osmium::Geometry::Geometry geometry; std::stream out << geometry;
we would not know in which format to write.
Instead we can write
std::stream out << geometry.as_WKT();
and this class magically makes this work.
Osmium::Geometry::StreamFormat< T >::StreamFormat | ( | const Geometry & | geometry, |
bool | with_srid | ||
) | [inline] |
const Geometry& Osmium::Geometry::StreamFormat< T >::m_geometry |
const bool Osmium::Geometry::StreamFormat< T >::m_with_srid |