之前走弯路了,其实特别简单就能直接得到KMZ格式的文件,讲义下连接复制到浏览器地址中运行即可,但是有的时候获取的数据可能不全,需要用where条件严格限制一下。
以吉林省天地图的乡镇的资源的获取方法为例,标红色的部分,
f=kmz为输出格式KMZ,where这个地方比较重要,一般objectid都是从1开始,设置查询条件为大于0,就会把整个数据都下载下来,也就20秒的事儿。
辽宁省的数据,不知道为什么,一次获取不到全部,需要重新设置查询条件,这里写
where=PAC_CITY+%3D+2111,代表单独获取盘锦市的,以此类推,设置不同地级市的政区代码就可以了,就这样,愉快的玩耍吧~(链接删除兰州字样)
---------------------------------------------------------------------------------------------------------------------------------------------
吉林省------------------------------------------------------------------------------------------------------------------------------------------
ht兰州ttp://124.235.224.2:6080/arcgis/rest/services/JJServices/JJ_TOW/MapServer/0/query?
where=OBJECTID+>+0&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=&returnGeometry=true&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&
f=kmz辽宁省-------------------------------------------------------------------------------------------------------------------------
ht兰州ttp://221.180.204.25/OneMapServer/rest/services/XZQH/MapServer/0/query?
where=OBJECTID+>+0&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=&returnGeometry=true&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&
f=kmz山东省-----------------------------------------------------------------------------------------------------------------------
ht兰州tp://124.128.48.217:6080/arcgis/services/sdxzj/MapServer/2/query?
where=OBJECTID+>+0&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=&returnGeometry=true&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&
f=kmz[ 此帖被兰州小学在2018-03-25 17:20重新编辑 ]