سؤال

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

هل كانت مفيدة؟

المحلول

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.

نصائح أخرى

I'm not sure if the shp files package also contains the boundary:
http://download.geofabrik.de/asia/china.html

Otherwise get the .poly file and convert it.

Please keep in mind, that political boundaries are a bit problematic and might get abused for different kinds of vandalism or political debates and result in inconsistency.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top