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


I'm extracting Maps to use them on my Android app's locally, without internet connexion on the phones. I extract the small maps of cities areas, for example, barcelona city area, with OSMCONVERT.

The problem is that the maps have commercial poi's shown on the map, like for example hotels or restaurants.

How can i remove/hide them from my locally stored maps?


asked 16 Dec '11, 08:33

AndroidUser99's gravatar image

accept rate: 0%

retagged 16 Dec '11, 18:31

skorasaurus's gravatar image


Yes, sure, you can simply remove that data from your local copy. There's a companion tool to osmconvert called osmfilter that can do these things. See the wiki page for details.

permanent link

answered 16 Dec '11, 10:27

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

I can't understand it clearly, please, can you give me a command example for removing all the nodes with the tag "amenity" ?

(16 Dec '11, 16:11) AndroidUser99

great!! thanks!

(19 Dec '11, 09:24) AndroidUser99

There's one example in the wiki for osmfilter that I customized for you:

./osmfilter input.osm --drop="amenity=hotel" -o=output.osm

For multiple ones, you may be able to do: ./osmfilter input.osm --drop="amenity=hotel,restaurant" -o=output.osm

permanent link

answered 16 Dec '11, 18:30

skorasaurus's gravatar image

accept rate: 12%

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: 16 Dec '11, 08:33

question was seen: 6,812 times

last updated: 19 Dec '11, 16:24

powered by OSQA