Libosmium
2.16.0
Fast and flexible C++ library for working with OpenStreetMap data
|
Go to the documentation of this file. 1 #ifndef OSMIUM_EXPERIMENTAL_FLEX_READER_HPP
2 #define OSMIUM_EXPERIMENTAL_FLEX_READER_HPP
55 namespace experimental {
57 template <
typename TLocationHandler>
100 std::vector<osmium::memory::Buffer> area_buffers;
102 area_buffers.push_back(std::move(area_buffer));
138 #endif // OSMIUM_EXPERIMENTAL_FLEX_READER_HPP
osmium::io::Header header()
Definition: reader.hpp:354
@ nothing
Definition: entity_bits.hpp:67
void apply(TIterator it, TIterator end, THandlers &&... handlers)
Definition: visitor.hpp:323
@ node
Definition: entity_bits.hpp:68
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
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:87
osmium::area::MultipolygonCollector< osmium::area::Assembler > m_collector
Definition: flex_reader.hpp:67
void add_buffer(const Buffer &buffer)
Definition: buffer.hpp:619
Definition: buffer.hpp:97
Definition: flex_reader.hpp:58
bool m_with_areas
Definition: flex_reader.hpp:60
osmium::io::Reader m_reader
Definition: flex_reader.hpp:65
void close()
Definition: reader.hpp:320
osmium::io::Header header()
Definition: flex_reader.hpp:116
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
osmium::memory::Buffer read()
Definition: reader.hpp:380
@ area
Definition: entity_bits.hpp:72
bool eof() const
Definition: reader.hpp:434
@ relation
Definition: entity_bits.hpp:70
bool eof() const
Definition: flex_reader.hpp:124
void read_relations(TIter begin, TIter end)
Definition: collector.hpp:547
osmium::memory::Buffer read()
Definition: flex_reader.hpp:95
std::size_t commit()
Definition: buffer.hpp:468
void close()
Definition: flex_reader.hpp:120
@ nwr
node, way, or relation object
Definition: entity_bits.hpp:71
HandlerPass2 & handler(const callback_func_type &callback=nullptr)
Definition: collector.hpp:479
osmium::area::Assembler::config_type m_assembler_config
Definition: flex_reader.hpp:66
@ way
Definition: entity_bits.hpp:69
Definition: reader.hpp:90
FlexReader(const char *filename, TLocationHandler &location_handler, osmium::osm_entity_bits::type entities=osmium::osm_entity_bits::nwr)
Definition: flex_reader.hpp:91
const osmium::area::MultipolygonCollector< osmium::area::Assembler > & collector() const
Definition: flex_reader.hpp:128
type
Definition: entity_bits.hpp:63
TLocationHandler & m_location_handler
Definition: flex_reader.hpp:63