【问题标题】:Python - Save a map - Using ArcGIS - 'NoneType' object is not subscriptablePython - 保存地图 - 使用 ArcGIS - “NoneType”对象不可下标
【发布时间】:2021-06-18 12:25:45
【问题描述】:
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”对象不可下标,我该怎么办?

【问题讨论】:

    标签: python save arcgis


    【解决方案1】:

    您如何声明 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/

    【讨论】:

      猜你喜欢
      • 2021-12-14
      • 1970-01-01
      • 1970-01-01
      • 2021-02-14
      • 2016-03-30
      • 2019-08-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多