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

Export of boundary

1

Hi all. How can I get a country with complete country boundary (closed and with all ways, nodes etc) or complete country boundary only into OSM XML format? Sorry for bad English.

asked 20 Jun '11, 10:44

vvk000's gravatar image

vvk000
16111
accept rate: 0%


One Answer:

2

Try GeoFabrik. They provide daily exports of most contries.

answered 20 Jun '11, 10:54

Gnonthgol's gravatar image

Gnonthgol ♦
13.8k16103198
accept rate: 16%

Country boundary for one country from GeoFabrik is not complete. Therefore I must "glue" XML for country boundary with for boundaries of it's neighbours... Does not exist a more simple technique?

(20 Jun '11, 11:21) vvk000
1

if you experience problems with a specific country you might be better off mailing Geofabrik and tell them about the problem.

(21 Jun '11, 12:17) dieterdreist
2

You could also download the continent file and then use Osmosis to cut out a generous rectangle around your country of interest, which will make sure that everything you need is contained. - Should you be interested in the country boundary [i]only[/i] then perhaps you should check out naturalearthdata.com - their data is not as detailed as OSM's but very good for a zoomed-out view.

(26 Jun '11, 01:43) Frederik Ramm ♦

Source code available on GitHub .