本文簡要介紹 python 語言中 arcgis.realtime.velocity.feeds.Geotab
的用法。
用法:
class arcgis.realtime.velocity.feeds.Geotab(label, description, url, database, username, password, groups=None, diagnostics_ids=None, data_format=None, track_id_field=None, geometry=None, time=None, run_interval=RunInterval(cron_expression='0 * * ? * * *', timezone='America/Los_Angeles'))
可選參數:
- groups: String 。要包含在函數架構中的組列表。使用 semi-colon (;) 分隔多個值。
- diagnostics_ids: String 。要包含在函數架構中的診斷 ID 列表。使用 semi-colon (;) 分隔多個值。
- data_format:
JsonFormat
。包含此 feed 的數據格式配置的實例。僅配置允許的格式。如果在初始化期間未正確設置,則會自動檢測格式並根據傳入數據的樣本進行設置。該示例將從 init 中迄今為止提供的配置中獲取。 - track_id_field: String 。應設置為軌道 ID 的傳入數據的字段名稱。
- geometry:
[
XYZGeometry
,SingleFieldGeometry
]。幾何配置的實例,將用於從傳入數據創建幾何對象。 - time:
[
TimeInstant
,TimeInterval
]。時間配置實例,將用於根據傳入數據創建時間信息。 - run_interval:
RunInterval
。調度程序配置的實例。默認為:RunInterval(cron_expression=”0 * * ? * * *”, timezone=”America/Los_Angeles”)
返回:
具有 Geotab 提要配置的數據類。
輪詢 Geotab 以獲取事件數據。該數據類可用於定義提要配置並創建提要。
Parameter
Description
label
String 。此 Feed 實例的唯一標簽。
description
String 。飼料說明。
url
String 。用於驗證 Geotab 的 URL。
database
String 。提供數據的 Geotab 數據庫的名稱。
username
String 。指定用於驗證 Geotab 的用戶名。
password
String 。指定用於驗證 Geotab 的密碼。
例子:
# Usage Example from arcgis.realtime.velocity.feeds import Geotab from arcgis.realtime.velocity.feeds.geometry import XYZGeometry, SingleFieldGeometry from arcgis.realtime.velocity.feeds.time import TimeInterval, TimeInstant geotab = Geotab( label="feed_name", description="feed_description", url="Geotab_url", database="Geotab_database", username="Geotab_user_name", password="Geotab_password", data_format=None ) # use velocity object to get the FeedsManager instance feeds = velocity.feeds # use the FeedsManager object to create a feed from this feed configuration geotab_feed = feeds.create(geotab) geotab_feed.start() feeds.items
相關用法
- Python ArcGIS Geometry.true_centroid用法及代碼示例
- Python ArcGIS GeoAccessor.bbox用法及代碼示例
- Python ArcGIS Geometry.last_point用法及代碼示例
- Python ArcGIS Geometry.measure_on_line用法及代碼示例
- Python ArcGIS GeoAccessor.area用法及代碼示例
- Python ArcGIS Geometry.point_from_angle_and_distance用法及代碼示例
- Python ArcGIS Geometry.hull_rectangle用法及代碼示例
- Python ArcGIS GeoAccessor.from_parquet用法及代碼示例
- Python ArcGIS Geometry.translate用法及代碼示例
- Python ArcGIS Geometry.from_shapely用法及代碼示例
- Python ArcGIS Geometry.intersect用法及代碼示例
- Python ArcGIS Geometry.length用法及代碼示例
- Python ArcGIS Geometry.area用法及代碼示例
- Python ArcGIS Geometry.angle_distance_to用法及代碼示例
- Python ArcGIS Geometry.project_as用法及代碼示例
- Python ArcGIS Geometry.part_count用法及代碼示例
- Python ArcGIS GeoAccessor.length用法及代碼示例
- Python ArcGIS Geometry.spatial_reference用法及代碼示例
- Python ArcGIS GeoAccessor.full_extent用法及代碼示例
- Python ArcGIS Geometry.densify用法及代碼示例
- Python ArcGIS Geometry用法及代碼示例
- Python ArcGIS Geometry.first_point用法及代碼示例
- Python ArcGIS Geometry.geometry_type用法及代碼示例
- Python ArcGIS Geometry.extent用法及代碼示例
- Python ArcGIS Geometry.point_count用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.realtime.velocity.feeds.Geotab。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。