Libosmium
2.20.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <disk_store.hpp>
Public Member Functions | |
DiskStore (int data_fd, offset_index_type &node_index, offset_index_type &way_index, offset_index_type &relation_index) | |
void | node (const osmium::Node &node) |
void | way (const osmium::Way &way) |
void | relation (const osmium::Relation &relation) |
void | operator() (const osmium::memory::Buffer &buffer) |
Public Member Functions inherited from osmium::handler::Handler | |
void | osm_object (const osmium::OSMObject &) const noexcept |
void | node (const osmium::Node &) const noexcept |
void | way (const osmium::Way &) const noexcept |
void | relation (const osmium::Relation &) const noexcept |
void | area (const osmium::Area &) const noexcept |
void | changeset (const osmium::Changeset &) const noexcept |
void | tag_list (const osmium::TagList &) const noexcept |
void | way_node_list (const osmium::WayNodeList &) const noexcept |
void | relation_member_list (const osmium::RelationMemberList &) const noexcept |
void | outer_ring (const osmium::OuterRing &) const noexcept |
void | inner_ring (const osmium::InnerRing &) const noexcept |
void | changeset_discussion (const osmium::ChangesetDiscussion &) const noexcept |
void | flush () const noexcept |
Private Types | |
using | offset_index_type = osmium::index::map::Map< unsigned_object_id_type, std::size_t > |
Private Attributes | |
std::size_t | m_offset = 0 |
int | m_data_fd |
offset_index_type & | m_node_index |
offset_index_type & | m_way_index |
offset_index_type & | m_relation_index |
Writes OSM data in the Osmium-internal serialized format to disk keeping track of object offsets in the indexes given to the constructor.
Note: This handler will only work if either all object IDs are positive or all object IDs are negative.
|
private |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |