void way(const osmium::Way& way) { if (m_write_change_ops) { open_close_op_tag(way.visible() ? (way.version() == 1 ? operation::op_create : operation::op_modify) : operation::op_delete); } write_prefix(); m_out += "<way"; write_meta(way); if (way.tags().empty() && way.nodes().empty()) { m_out += "/>\n"; return; } m_out += ">\n"; for (const auto& node_ref : way.nodes()) { write_prefix(); oprintf(m_out, " <nd ref=\"%" PRId64 "\"/>\n", node_ref.ref()); } write_tags(way.tags()); write_prefix(); m_out += "</way>\n"; }
void way(const osmium::Way& way) { ++ways; if (!matches_user_filter(way)) return; ++uways; if (way.visible()==false) { m_wayfile << way.id() << "\t" << way.version() << "\t" << way.changeset() << "\t" << way.timestamp().to_iso() << "\t" << way.uid() << std::endl; } }