1#ifndef OSMIUM_EXPERIMENTAL_FLEX_READER_HPP
2#define OSMIUM_EXPERIMENTAL_FLEX_READER_HPP
55 namespace experimental {
57 template <
typename TLocationHandler>
94 osmium::memory::Buffer
read() {
99 std::vector<osmium::memory::Buffer> area_buffers;
101 area_buffers.push_back(std::move(area_buffer));
103 for (
const osmium::memory::Buffer& b : area_buffers) {
104 buffer.add_buffer(b);
Definition: flex_reader.hpp:58
bool m_with_areas
Definition: flex_reader.hpp:60
const osmium::area::MultipolygonCollector< osmium::area::Assembler > & collector() const
Definition: flex_reader.hpp:127
osmium::io::Header header()
Definition: flex_reader.hpp:115
osmium::area::Assembler::config_type m_assembler_config
Definition: flex_reader.hpp:66
osmium::memory::Buffer read()
Definition: flex_reader.hpp:94
osmium::io::Reader m_reader
Definition: flex_reader.hpp:65
osmium::area::MultipolygonCollector< osmium::area::Assembler > m_collector
Definition: flex_reader.hpp:67
TLocationHandler & m_location_handler
Definition: flex_reader.hpp:63
void close()
Definition: flex_reader.hpp:119
bool eof() const
Definition: flex_reader.hpp:123
FlexReader(const osmium::io::File &file, TLocationHandler &location_handler, osmium::osm_entity_bits::type entities=osmium::osm_entity_bits::nwr)
Definition: flex_reader.hpp:71
FlexReader(const char *filename, TLocationHandler &location_handler, osmium::osm_entity_bits::type entities=osmium::osm_entity_bits::nwr)
Definition: flex_reader.hpp:90
osmium::osm_entity_bits::type m_entities
Definition: flex_reader.hpp:61
FlexReader(const std::string &filename, TLocationHandler &location_handler, osmium::osm_entity_bits::type entities=osmium::osm_entity_bits::nwr)
Definition: flex_reader.hpp:86
Definition: reader.hpp:90
osmium::memory::Buffer read()
Definition: reader.hpp:444
osmium::io::Header header()
Definition: reader.hpp:418
bool eof() const
Definition: reader.hpp:498
void close()
Definition: reader.hpp:384
HandlerPass2 & handler(const callback_func_type &callback=nullptr)
Definition: collector.hpp:479
void read_relations(TIter begin, TIter end)
Definition: collector.hpp:547
type
Definition: entity_bits.hpp:63
@ node
Definition: entity_bits.hpp:68
@ nwr
node, way, or relation object
Definition: entity_bits.hpp:71
@ relation
Definition: entity_bits.hpp:70
@ nothing
Definition: entity_bits.hpp:67
@ way
Definition: entity_bits.hpp:69
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
void apply(TIterator it, TIterator end, THandlers &&... handlers)
Definition: visitor.hpp:326