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

selected layer query

0

Is it possible to select only 1 layer, i.e. "water" from whole map? How can I do such query? I need to export/extract such data for my project.

This question is marked "community wiki".

asked 08 Jun '12, 12:45

UniSlaw's gravatar image

UniSlaw
1111
accept rate: 0%

1

Tell us a bit more about your project: Will you be doing this only for a small area, or for a whole country? What kind of output are you looking for - map tiles, SVGs, shape files...?

(08 Jun '12, 12:55) Frederik Ramm ♦

One Answer:

2

OpenStreetMap data isn't sorted into layers, but instead uses tags to distinguish one type of feature from another. You can use a package like Osmosis to filter out just the data you're interested in based on those tags. Alternatively you can download prepared extracts of OSM data from several providers, but they may not have the exact type of data you're looking for.

answered 08 Jun '12, 13:16

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.3k1785108
accept rate: 18%

You should also be able to use https://wiki.openstreetmap.org/wiki/Xapi to download only objects with specific tags.

(08 Jun '12, 15:41) Vincent de P... ♦

Source code available on GitHub .