Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to download the county boundaries of China in OpenStreetMap?

Is there a way to download the shp format file about eh county boundaries of China in OpenStreetMap?

like image 903
Ben Avatar asked Mar 20 '23 09:03

Ben


1 Answers

You can get the administrative boundary via the Overpass API. The corresponding query is:

relation
  ["boundary"="administrative"]
  ["admin_level"="2"]
  ["name:en"="People's Republic of China"];
(._;>;);
out body;

In order to learn more about the specified tags take a look at the OSM wiki. Especially on relations with the administrative_boundary tag.

The returned XML file has to be converted to a shapefile afterwards.

like image 104
scai Avatar answered Apr 30 '23 03:04

scai