當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Python arcgis.mapping.SceneLayerManager.delete_tiles用法及代碼示例

用法:

delete_tiles(levels, extent=None)

參數:

  • extent: 可選字典,如果指定,此範圍內的瓦片將被刪除或將根據服務的全範圍刪除。
  • levels: 必填字符串,要刪除的級別。例如,0-5,10,11-20 或 1,2,3 或 0-5

返回:

一個字典

delete_tiles 方法從當前緩存中刪除切片。

例子:

# USAGE EXAMPLE

>>> from arcgis.mapping import SceneLayerManager
>>> from arcgis.gis import GIS

# connect to your GIS and get the web map item
>>> gis = GIS(url, username, password)

>>> deleted_tiles = SceneLayerManager.delete_tiles(levels = "11-20",
                                      extent = {"xmin":6224324.092137296,
                                                "ymin":487347.5253569535,
                                                "xmax":11473407.698535524,
                                                "ymax":4239488.369818687,
                                                "spatialReference":{"wkid":102100}
                                                }
                                      )
>>> type(deleted_tiles)
<Dictionary>

相關用法


注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.mapping.SceneLayerManager.delete_tiles。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。