本文簡要介紹 python 語言中 arcgis.features.FeatureLayer.fromitem
的用法。
用法:
classmethod fromitem(item, layer_id=0)
返回:
FeatureSet
對象
fromitem
方法從Item
對象創建FeatureLayer
。Parameter
Description
item
必需的
Item
對象。項目的類型應該是代表FeatureLayerCollection
的Feature Service
layer_id
必需的整數。要素圖層集合(要素服務)中圖層的 id。
layer_id
的默認值為 0。例子:
# Usage Example >>> from arcgis.features import FeatureLayer >>> gis = GIS("pro") >>> buck = gis.content.search("owner:"+ gis.users.me.username) >>> buck_1 =buck[1] >>> buck_1.type 'Feature Service' >>> new_layer= FeatureLayer.fromitem(item = buck_1) >>> type(new_layer) <class 'arcgis.features.layer.FeatureLayer'>
相關用法
- Python ArcGIS FeatureLayer.manager用法及代碼示例
- Python ArcGIS FeatureLayer.delete_features用法及代碼示例
- Python ArcGIS FeatureLayer.query_related_records用法及代碼示例
- Python ArcGIS FeatureLayer.query_date_bins用法及代碼示例
- Python ArcGIS FeatureLayer.get_unique_values用法及代碼示例
- Python ArcGIS FeatureLayer.generate_renderer用法及代碼示例
- Python ArcGIS FeatureLayer.append用法及代碼示例
- Python ArcGIS FeatureLayer.calculate用法及代碼示例
- Python ArcGIS FeatureLayer.edit_features用法及代碼示例
- Python ArcGIS FeatureLayer.query用法及代碼示例
- Python ArcGIS FeatureLayerCollection.extract_changes用法及代碼示例
- Python ArcGIS FeatureLayer用法及代碼示例
- Python ArcGIS Feature.geometry用法及代碼示例
- Python ArcGIS Feature.set_value用法及代碼示例
- Python ArcGIS FeatureCollection.from_featureset用法及代碼示例
- Python ArcGIS Feature用法及代碼示例
- Python ArcGIS Feature.attributes用法及代碼示例
- Python ArcGIS FeatureSet.save用法及代碼示例
- Python ArcGIS Feed.metrics用法及代碼示例
- Python ArcGIS FeedsManager.get用法及代碼示例
- Python ArcGIS FeedsManager.create用法及代碼示例
- Python ArcGIS FeedsManager.items用法及代碼示例
- Python ArcGIS Feed.start用法及代碼示例
- Python ArcGIS Feed.stop用法及代碼示例
- Python ArcGIS Feed.status用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.features.FeatureLayer.fromitem。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。