美文网首页
获取ArcGIS Sever中瓦片的级别

获取ArcGIS Sever中瓦片的级别

作者: 家琦的三亩地 | 来源:发表于2016-11-07 10:22 被阅读0次
    import requests
    import reserviceName = 'SampleWorldCities'
    baseUrl = 'http://localhost:6080/arcgis/rest/services/'
    serveiceUrl = baseUrl + serviceName + '/MapServer'
    GET_Respose = requests.get(serveiceUrl)
    xmldoc = GET_Respose.content
    scalesstr = re.findall(r'<li>Scale: (.*?)</li>',xmldoc)
    scale = map(int,scalesstr)
    print scale
    

    相关文章

      网友评论

          本文标题:获取ArcGIS Sever中瓦片的级别

          本文链接:https://www.haomeiwen.com/subject/kxqiyttx.html