|
Libosmium
2.2.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 | File |
| class | GzipBufferDecompressor |
| class | GzipCompressor |
| class | GzipDecompressor |
| class | Header |
| class | InputIterator |
| class | NoCompressor |
| class | NoDecompressor |
| class | OutputIterator |
| class | Reader |
| class | Writer |
Enumerations | |
| enum | file_compression { file_compression::none = 0, file_compression::gzip = 1, file_compression::bzip2 = 2 } |
| enum | file_format { file_format::unknown = 0, file_format::xml = 1, file_format::pbf = 2, file_format::opl = 3, file_format::json = 4 } |
| enum | overwrite : bool { overwrite::no = false, overwrite::allow = 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 (file_format format) |
| template<typename TChar , typename TTraits > | |
| std::basic_ostream< TChar, TTraits > & | operator<< (std::basic_ostream< TChar, TTraits > &out, const file_format format) |
| template<class... TArgs> | |
| osmium::memory::Buffer | read_file (TArgs &&...args) |
Everything related to input and output of OSM data.
|
strong |
|
strong |
|
strong |
|
inline |
|
inline |
|
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.
1.8.9.1