微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Python - 保存地图 - 使用 ArcGIS - 'NoneType' 对象不可下标

如何解决Python - 保存地图 - 使用 ArcGIS - 'NoneType' 对象不可下标

webmap_properties = {'title':'My first map of badminton courts in HK','snippet': 'Jupyter notebook saved as a webmap','tags':['automation','python','ArcGIS Notebooks']}
my_first_map.save(webmap_properties)

它说“nonetype”对象不可下标,我该怎么办?

解决方法

你如何声明 my_first_map

这可能有用

import arcgis
from arcgis.gis import GIS
from arcgis.mapping import WebMap

my_first_map = WebMap()

webmap_properties = {'title':'My first map of badminton courts in HK','snippet': 'Jupyter notebook saved as a webmap','tags':['automation','python','ArcGIS Notebooks']}

my_first_map.save(item_properties=webmap_properties)

无论如何,这里有一些可能会有所帮助的示例: https://developers.arcgis.com/python/sample-notebooks/publishing-web-maps-and-web-scenes/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。