This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

How to filter away short fragments in Overpass?

0

I want to show all long stretches of cycleway in a certain area, as to do some quality checks. However, I don't care about the small cycleways (e.g. <5m length) and want to remove them from the rendering of overpass.

Is this possible?

asked 15 Nov '17, 01:40

Pieter%20Vander%20Vennet's gravatar image

Pieter Vande...
2415813
accept rate: 50%


One Answer:

2

No, there is no length operator in the Overpass query language.

If you use JOSM you could use Overpass API to fetch just the cycleways and then use the search to find and purge the short ways. Add a tile layer showing OpenStreetMap and the visualization is similar.

answered 15 Nov '17, 02:03

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

1

According to the devs, it'll be added in the next release :)

(16 Nov '17, 15:59) Pieter Vande...