You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Query_Statement::to_string() in src/overpass_api/statements/query.h:100-101 returns "nwr" for the nw type mask:
elseif (type == (QUERY_NODE | QUERY_WAY | QUERY_RELATION))
return"nwr";
elseif (type == (QUERY_NODE | QUERY_WAY))
return"nwr"; // should be "nw"
wr and nr are handled correctly; only nw is incorrect.
to_string() backs dump_compact_ql() and dump_pretty_ql() via dump_subquery_map_ql(), so the QL dump forms misreport the type. XML dumps are not affected.
Impact: Only query dumps are incorrect. Execution is unaffected — type holds the correct bitmask and only the echoed-back text is wrong. The dumped query with nwr in place of nw is still valid, but it is a different query that also returns relations.
Expected nw["amenity"="cafe"]; but output is nwr["amenity"="cafe"];. Same under --dump-pretty-ql and --dump-bbox-ql. The output with --dump-xml is correct.
Reproduces from XML input as well, so it is the dump side, not the parser:
Activity
mmd-osm commentedon Aug 5, 2026
Confirmed: mmd-osm@a20011a