本文簡要介紹 python 語言中 arcgis.gis.Item.copy
的用法。
用法:
copy(title=None, tags=None, snippet=None, description=None, layers=None)
返回:
一個
Item
對象**Usage Example** >>> item.copy() <Item title:"gisslideshow - Copy 94452b" type:Microsoft Powerpoint owner:geoguy> >>> item.copy(title="GIS_Tutorial") <Item title:"GIS_Tutorial" type:Microsoft Powerpoint owner:geoguy> >>> item.copy() <Item title:"NZTiles - Copy 021a06" type:Vector Tile Layer owner:geoguy>
copy
方法允許創建從當前項目派生的項目。對於圖層,
copy
將創建一個使用 URL 作為參考的新項目。對於非基於圖層的項目,將複製這些項目並提供完全相同的數據。如果未提供標題、標簽、說明片段,則將使用
item
中的值。copy
方法可以在多種情況下使用,例如:Vector tile service sprite customization
Limiting feature service exposure
Sharing content by reference with groups
Creating backup items.
Parameter
Description
title
可選字符串。新項目的名稱。
tags
可選的字符串列表。有助於搜索和定位已發布信息的說明性詞語。
snippet
可選字符串。所發布信息的簡要摘要。
description
可選字符串。正在發布的項目的詳細說明。
layers
可選的整數列表。如果您有多個圖層並且您隻需要特定圖層,則可以為這些圖層提供索引。如果未提供任何內容,則所有圖層都將可見。
相關用法
- Python ArcGIS Item.copy_feature_layer_collection用法及代碼示例
- Python ArcGIS Item.create_tile_service用法及代碼示例
- Python ArcGIS Item.publish用法及代碼示例
- Python ArcGIS Item.reassign_to用法及代碼示例
- Python ArcGIS Item.share用法及代碼示例
- Python ArcGIS Item.status用法及代碼示例
- Python ArcGIS Item.delete_relationship用法及代碼示例
- Python ArcGIS Item.download用法及代碼示例
- Python ArcGIS Item.delete用法及代碼示例
- Python ArcGIS Item.move用法及代碼示例
- Python ArcGIS Item.related_items用法及代碼示例
- Python ArcGIS Item.register用法及代碼示例
- Python ArcGIS Item.add_comment用法及代碼示例
- Python ArcGIS Item.export用法及代碼示例
- Python ArcGIS Item.update_thumbnail用法及代碼示例
- Python ArcGIS Item.add_relationship用法及代碼示例
- Python ArcGIS Item.update用法及代碼示例
- Python ArcGIS Item.usage用法及代碼示例
- Python ArcGIS Item.get_thumbnail用法及代碼示例
- Python ArcGIS ImageryLayer.thumbnail用法及代碼示例
- Python arcgis.apps.hub.Initiative.update用法及代碼示例
- Python ArcGIS ImageryLayer.draw_graph用法及代碼示例
- Python arcgis.apps.hub.IndicatorManager.add用法及代碼示例
- Python arcgis.apps.hub.InitiativeManager.add用法及代碼示例
- Python ArcGIS ImageryLayer.compute_stats_and_histograms用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.gis.Item.copy。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。