// - walk over all way-versions // - walk over all bboxes // - if the way-id is recorded in the bboxes way-trackers // - send the way to the bboxes writer void way(const osmium::Way& way) { if (debug) { std::cerr << "cut_administrative way " << way.id() << " v" << way.version() << "\n"; } for (const auto& extract : info->extracts) { if (extract->way_tracker.get(way.id())){ for (const auto& node_ref : way.nodes()) { if (!extract->node_tracker.get(node_ref.ref())) { extract->node_tracker.set(node_ref.ref()); } } } } }