arcpy导出切片地图信息
import requests
import json
agisurl = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/export"
payload = { 'bbox': '-115.8,30.4,-85.5,50.5','size': '800,600', \
'imageSR': '102004', 'format': 'gif', 'transparent':'false', \
'f': 'pjson'}
r = requests.get(agisurl, params=payload)
print(r.text)
输出内容
{
"href" : "http://sampleserver1b.arcgisonline.com/arcgisoutput/_ags_map62b0465488804dcc8f7a96589a5e93da.gif",
"width" : 800,
"height" : 600,
"extent" : {
"xmin" : -2034271.95615396,
"ymin" : -952407.265726716,
"xmax" : 1148422.50936727,
"ymax" : 1434613.5834142,
"spatialReference" : {
"wkid" : 102004
}
},
"scale" : 15036321.7329085
}将url用浏览器打开即可看到切片地图
转载自:https://blog.csdn.net/A873054267/article/details/86006519