Why not ask your question on the new OpenStreetMap Community Forum?


I want to filtering tags (name) but only for a type of object.

Indeed, I want to remove name for only amenity and building object. I tried but for the moment I don't find the solution. My last try was :

osmfilter output2.osm --drop-tags="amenity=name"> output1.osm

And I don't know if it's possible.

Thank you for your help.


asked 20 Mar '15, 14:50

mickmac's gravatar image

accept rate: 0%

edited 22 Mar '15, 13:41

iii's gravatar image


Your statement drops only object tags with the real value 'name' which isn't that you want to archive. So if you take a look at the docs, you see that you need a wildcard or at least open filter experession:

./osmfilter a.o5m --drop-tags="oneway= name=" -o=plain_ways.o5m

You can also add an --keep="amenity=" to return only amenity nodes/ways/relations and remove their names (if this makes sense to your scenario?)

Edit: I changed the doc link to drop "Tags" as that is what is wanted here I think.

permanent link

answered 22 Mar '15, 13:41

iii's gravatar image

accept rate: 10%

edited 22 Nov '18, 22:46

SomeoneElse's gravatar image

SomeoneElse ♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 20 Mar '15, 14:50

question was seen: 6,178 times

last updated: 22 Nov '18, 22:46

powered by OSQA