1#ifndef OSMIUM_HANDLER_DUMP_HPP
2#define OSMIUM_HANDLER_DUMP_HPP
100 <<
object.changeset()
104 <<
object.timestamp().to_iso()
108 << (
object.visible() ?
"yes" :
"no")
122 << std::setprecision(7)
139 explicit Dump(std::ostream& out,
bool with_size =
true, std::string prefix =
"") :
147 for (
const auto& tag : tags) {
160 for (
const auto& node_ref : wnl) {
164 if (node_ref.location()) {
166 << node_ref.location();
174 for (
const auto& member : rml) {
183 if (member.full_member()) {
192 for (
const auto& node_ref : ring) {
196 if (node_ref.location()) {
198 << node_ref.location();
206 for (
const auto& node_ref : ring) {
210 if (node_ref.location()) {
212 << node_ref.location();
270 <<
changeset.bounds().bottom_left().lon_without_check()
272 <<
changeset.bounds().bottom_left().lat_without_check()
274 <<
changeset.bounds().top_right().lon_without_check()
276 <<
changeset.bounds().top_right().lat_without_check()
279 *
m_out <<
"(undefined)";
An OSM Changeset, a group of changes made by a single user over a short period of time.
Definition: changeset.hpp:146
Definition: location.hpp:271
double lon_without_check() const noexcept
Definition: location.hpp:410
double lat_without_check() const noexcept
Definition: location.hpp:429
Definition: object.hpp:64
Definition: relation.hpp:147
Definition: relation.hpp:161
void area(const osmium::Area &area)
Definition: dump.hpp:234
void tag_list(const osmium::TagList &tags)
Definition: dump.hpp:145
void print_meta(const osmium::OSMObject &object)
Definition: dump.hpp:81
void outer_ring(const osmium::OuterRing &ring)
Definition: dump.hpp:190
bool m_with_size
Definition: dump.hpp:64
std::string m_prefix
Definition: dump.hpp:65
void way(const osmium::Way &way)
Definition: dump.hpp:224
void relation_member_list(const osmium::RelationMemberList &rml)
Definition: dump.hpp:172
void print_title(const char *title, const osmium::memory::Item &item)
Definition: dump.hpp:67
Dump(std::ostream &out, bool with_size=true, std::string prefix="")
Definition: dump.hpp:139
void changeset(const osmium::Changeset &changeset)
Definition: dump.hpp:239
void node(const osmium::Node &node)
Definition: dump.hpp:218
void print_location(const osmium::Node &node)
Definition: dump.hpp:115
void relation(const osmium::Relation &relation)
Definition: dump.hpp:229
std::ostream * m_out
Definition: dump.hpp:63
void inner_ring(const osmium::InnerRing &ring)
Definition: dump.hpp:204
void way_node_list(const osmium::WayNodeList &wnl)
Definition: dump.hpp:158
Definition: handler.hpp:71
item_size_type byte_size() const noexcept
Definition: item.hpp:163
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
void apply_item(TItem &item, THandlers &&... handlers)
Definition: visitor.hpp:306
const char * item_type_to_name(const item_type type) noexcept
Definition: item_type.hpp:154
void apply(TIterator it, TIterator end, THandlers &&... handlers)
Definition: visitor.hpp:326
Definition: location.hpp:555