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


Python ArcGIS list_datastore_content用法及代碼示例

本文簡要介紹 python 語言中 arcgis.raster.analytics.list_datastore_content 的用法。

用法:

arcgis.raster.analytics.list_datastore_content(datastore, filter=None, *, gis=None, future=False, **kwargs)

返回:

數據存儲中的內容列表

列出向服務器注冊的數據存儲的內容(fileShares、cloudStores、rasterStores)。

Parameter

Description

datastore

必需的字符串或列表。要列出其中內容的文件共享、光柵存儲或雲存儲數據存儲。它可以是指定數據存儲路徑的字符串,例如:“/fileShares/SensorData”、“/cloudStores/testcloud”、“/rasterStores/rasterstore”,也可以是包含文件共享、光柵存儲或雲存儲路徑的數據存儲對象。

例子:

ds=analytics.get_datastores()
ds_items=ds.search()
ds_items[1]
ds_items[1] may be specified as input for datastore

它也可以是數據存儲路徑列表或包含文件共享、柵格存儲或雲存儲路徑的數據存儲對象列表。

為了列出數據存儲項,可以隻指定數據存儲的名稱

例如:fileShares 或例如:cloudStore、rasterStore

filter

可選的。過濾掉要顯示的柵格內容

gis

僅關鍵字參數。可選的 GIS 對象。運行該工具的 GIS。如果未指定,則使用活動 GIS。

future

僅關鍵字參數。可選的布爾值。如果為 True,則結果將是一個 GPJob 對象,並且結果將異步返回。

例子:

# Usage Example 1: Returns the contents of the rasterstore registered with the server.

datastore_op = list_datastore_content("/rasterStores/rasterstore", gis=gis)

相關用法


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