I am trying to extract the whole world from OSM on the basis of administrative level (i.e, admin_level=2) using overpass turbo but it is difficult as it doesn't allow to download whole world at a single time. So please help me if you have any idea to export only countries boundary. asked 29 Nov '16, 05:22 Ro Sun |
You can download the OSM planet file and filter out the admin boundaries (see this answer for example), or you could download from the boundaries map. However, if you only want country boundaries then my suspicion is that you do not need the full detail that OSM offers (OSM data follows every smallest zig-zag of the boundary, resulting in very large polygons), and you might also dislike the fact the OSM boundaries don't hug the coastline but include the maritime claims as well. It might be much easier for you to head over to the public domain Natural Earth dataset which comes simplified for three different scales. answered 29 Nov '16, 06:44 Frederik Ramm ♦ |
Here is the curl command to download the countries border
And use ogr2ogr to convert osm to shapefile. answered 30 Nov '16, 04:43 Gagan |