Skip to content

Commit

Permalink
fix: remove check for negative way ID
Browse files Browse the repository at this point in the history
The check is obsolete as OSM way IDs are supposed to be positive. However, negative values can occur in locally edited
files such as the Heidelberg test graph, see GIScience/openrouteservice#1761.
  • Loading branch information
aoles committed Apr 5, 2024
1 parent 75d4c33 commit 1d1bfa0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/firstpass_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ class FirstPassHandler : public osmium::handler::Handler {
}

void way(const osmium::Way &way) {
if (way.id() < 0) return;
way_count_++;
if (is_removable(way)) { return; }
for (const osmium::NodeRef &n: way.nodes()) {
Expand Down

0 comments on commit 1d1bfa0

Please sign in to comment.