如何在OpenStreetMap中下载中国的县界?

Ben*_*Ben 4 boundary shapefile openstreetmap

有没有办法在OpenStreetMap中下载关于中国的eh县界的shp格式文件?

sca*_*cai 7

您可以通过Overpass API获取管理边界.相应的查询是:

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

要了解有关指定标记的更多信息,请查看OSM wiki.特别是与administrative_boundary标记的关系.

之后,返回的XML文件必须转换为shapefile.