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

Hi

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?

Thanks

asked 16 Dec '11, 08:33

AndroidUser99's gravatar image

AndroidUser99
1506812
accept rate: 0%

retagged 16 Dec '11, 18:31

skorasaurus's gravatar image

skorasaurus
1.4k153137


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 ♦
82.5k927201273
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

skorasaurus
1.4k153137
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

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:

×83
×66
×60

question asked: 16 Dec '11, 08:33

question was seen: 7,104 times

last updated: 19 Dec '11, 16:24

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