[OSM-dev] Extracting just national boundaries

Igor Podolskiy igor.podolskiy at vwi-stuttgart.de
Thu Aug 4 09:32:08 BST 2011


Hi Curt,

> is there an easy way to extract only national boundaries from an osm/pbf
> file?
> Running osmosis with
> "--tag-filter accept-relation boundary=administrative"
> and then
> "--tag-filter accept-relation admin_level=2"
> won't work because this will filter away members of "admin_level=2"
> relations that are in turn different relations.
luckily, you're not the first one with this problem. Here's the answer:

http://lists.openstreetmap.org/pipermail/dev/2011-April/022394.html

and the followup:
http://lists.openstreetmap.org/pipermail/dev/2011-April/022397.html

Hope that helps
Igor



More information about the dev mailing list