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

Delete tags from osm-file

1

Hi,

I downloaded a *osm file and like to remove a couple of tags of it, before I proceed working with it.

Is there a way to do this with Osmosis?

Thanks,

UIli

asked 11 Sep '12, 17:25

Wasus's gravatar image

Wasus
346161725
accept rate: 0%

edited 13 Sep '12, 19:06

stephan75's gravatar image

stephan75
12.6k556210


One Answer:

4

Osmosis has some filter methods like the --way-key(-value) and --node-key(-value) flags and also the more advanced --tag-filter to keep or reject specific tags or values. But you may also want to have a look at Osmfilter.

answered 12 Sep '12, 07:38

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

1

Thanks! Osmfilter will do it.

(12 Sep '12, 07:55) Wasus

Source code available on GitHub .