本文簡要介紹 python 語言中 arcgis.apps.workforce.Project
的用法。
用法:
class arcgis.apps.workforce.Project(item)
勞動力項目
Parameter
Description
item
必需的
Item
。包含項目的項目。對於版本 1 Workforce 項目,這是
Workforce Project
類型的項目。對於第 2 版 Workforce 項目,這是類型為Feature Service
的項目,類型為Workforce Project
# Get a Project and search the assignments and workers. import arcgis gis = arcgis.gis.GIS("https://arcgis.com", "<username>", "<password>") item = gis.content.get("<item-id>") project = arcgis.apps.workforce.Project(item) assignments = project.assignments.search() workers = project.workers.search() # Create v1 "Classic" Workforce project and v2 "offline-enabled" project v1_project = arcgis.apps.workforce.create_project('v1_project', major_version=1) v2_project = arcgis.apps.workforce.create_project('v2_project', major_version=2)
相關用法
- Python ArcGIS ProfileManager.create用法及代碼示例
- Python ArcGIS ProfileManager.get用法及代碼示例
- Python ArcGIS ProfileManager.save_as用法及代碼示例
- Python ArcGIS ProfileManager.delete用法及代碼示例
- Python ArcGIS ProfileManager.update用法及代碼示例
- Python ArcGIS PortalLicense.update用法及代碼示例
- Python ArcGIS PageManager.link用法及代碼示例
- Python ArcGIS PortalDataStore.register用法及代碼示例
- Python ArcGIS Polygon.coordinates用法及代碼示例
- Python ArcGIS PortalDataStore.unregister用法及代碼示例
- Python ArcGIS Point3DLayer用法及代碼示例
- Python ArcGIS PortalDataStore.servers用法及代碼示例
- Python ArcGIS PortalDataStore用法及代碼示例
- Python ArcGIS PageManager.clone用法及代碼示例
- Python ArcGIS PortalDataStore.describe用法及代碼示例
- Python ArcGIS PortalDataStore.layers用法及代碼示例
- Python ArcGIS Page.delete用法及代碼示例
- Python ArcGIS PageManager.add用法及代碼示例
- Python ArcGIS PortalDataStore.validate用法及代碼示例
- Python ArcGIS PageManager.unlink用法及代碼示例
- Python ArcGIS PortalDataStore.publish用法及代碼示例
- Python ArcGIS Page.update用法及代碼示例
- Python ArcGIS PortalDataStore.delete_layers用法及代碼示例
- Python ArcGIS PortalAdminManager.mode用法及代碼示例
- Python ArcGIS Point.coordinates用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.apps.workforce.Project。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。