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

osmfilter - is it possible to filter out “highway=footway” but keep ones with “bicycle=yes”?

0

I want to keep all other objects unchanged.

asked 22 Sep '13, 17:12

Bulwersator's gravatar image

Bulwersator
468121625
accept rate: 14%

2

You haven't explained your purpose but if you want to extract/keep only cycleways then keep in mind that there are other important combinations like bicycle=designated and bicycle=official, too.

(23 Sep '13, 10:06) scai ♦

@scai - thanks for info about official and other weird tags.

(23 Sep '13, 18:58) Bulwersator

One Answer:

2

This should work:

osmfilter input.o5m --drop-ways="highway=footway and bicycle!=yes" -o=output.o5m

answered 25 Sep '13, 22:07

Marqqs's gravatar image

Marqqs
448510
accept rate: 22%

Source code available on GitHub .