Libosmium
2.20.0
Fast and flexible C++ library for working with OpenStreetMap data
|
Everything related to input and output of OSM data. More...
Classes | |
class | Bzip2BufferDecompressor |
class | Bzip2Compressor |
class | Bzip2Decompressor |
class | CompressionFactory |
class | Compressor |
class | Decompressor |
class | DummyDecompressor |
class | File |
class | GzipBufferDecompressor |
class | GzipCompressor |
class | GzipDecompressor |
class | Header |
class | InputIterator |
class | InputIteratorRange |
class | NoCompressor |
class | NoDecompressor |
class | OutputIterator |
class | Reader |
class | ReaderWithProgressBar |
class | Writer |
Enumerations | |
enum class | file_compression { none = 0 , gzip = 1 , bzip2 = 2 } |
enum class | file_format { unknown = 0 , xml = 1 , pbf = 2 , opl = 3 , json = 4 , o5m = 5 , debug = 6 , blackhole = 7 , ids = 8 , last = 8 } |
enum class | read_meta { no = 0 , yes = 1 } |
enum class | buffers_type { any = 0 , single = 1 } |
enum class | overwrite : bool { no = false , allow = true } |
enum class | fsync : bool { no = false , yes = true } |
Functions | |
const char * | as_string (file_compression compression) |
template<typename TChar , typename TTraits > | |
std::basic_ostream< TChar, TTraits > & | operator<< (std::basic_ostream< TChar, TTraits > &out, const file_compression compression) |
const char * | as_string (const file_format format) noexcept |
template<typename TChar , typename TTraits > | |
std::basic_ostream< TChar, TTraits > & | operator<< (std::basic_ostream< TChar, TTraits > &out, const file_format format) |
template<typename TItem , typename TSource > | |
InputIteratorRange< TSource, TItem > | make_input_iterator_range (TSource &source) |
template<typename TDest > | |
OutputIterator< TDest > | make_output_iterator (TDest &destination) |
std::vector< std::string > | supported_pbf_compression_types () |
template<typename... TArgs> | |
osmium::memory::Buffer | read_file (TArgs &&... args) |
InputIterator< Reader > | begin (Reader &reader) |
InputIterator< Reader > | end (Reader &) |
InputIterator< ReaderWithProgressBar > | begin (ReaderWithProgressBar &reader) |
InputIterator< ReaderWithProgressBar > | end (ReaderWithProgressBar &) |
Everything related to input and output of OSM data.
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
InputIteratorRange< TSource, TItem > osmium::io::make_input_iterator_range | ( | TSource & | source | ) |
OutputIterator< TDest > osmium::io::make_output_iterator | ( | TDest & | destination | ) |
|
inline |
|
inline |
osmium::memory::Buffer osmium::io::read_file | ( | TArgs &&... | args | ) |
Read contents of the given file into a buffer in one go. Takes the same arguments as any of the Reader constructors.
The buffer can take up quite a lot of memory, so don't do this unless you are working with small OSM files and/or have lots of RAM.
|
inline |
Get a list of all compression types supported for PBF files.