NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi,

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.

Michael

asked 20 Mar '15, 14:50

mickmac's gravatar image

mickmac
11112
accept rate: 0%

edited 22 Mar '15, 13:41

iii's gravatar image

iii
4.9k84082


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

iii
4.9k84082
accept rate: 10%

edited 22 Nov '18, 22:46

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

Follow this question

By Email:

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

By RSS:

Answers

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:

×101
×66
×60
×18

question asked: 20 Mar '15, 14:50

question was seen: 6,298 times

last updated: 22 Nov '18, 22:46

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum