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

It is possible hide Hotels And Restaurants? (on extracted maps)

1

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


2 Answers:

1

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.

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

3

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

answered 16 Dec '11, 18:30

skorasaurus's gravatar image

skorasaurus
1.4k153137
accept rate: 12%

Source code available on GitHub .