ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Historical Traffic Data

  • 摘要
  • 属性
  • 代码示例

摘要

提供与网络数据集中存储的历史流量信息相关的信息,例如速度剖析表和时间片持续时间。

属性

属性说明数据类型
timeInterval
(只读)

流量数据的时间间隔。

Double
timeIntervalUnits
(只读)

流量数据的时间间隔单位。此属性返回以下关键字:

  • 毫秒
  • 秒
  • 分钟
  • 小时
  • 天
  • 周
  • 月
  • 年
  • 十年
  • 百年
  • 未知

String
firstTimeSliceFieldName
(只读)

剖析表中给定时期内第一个时间片的字段名称。

String
lastTimeSliceFieldName
(只读)

剖析表中给定时期内最后一个时间片的字段名称。

String
firstTimeSliceStartTime
(只读)

流量数据白天有效期的起始时间。

String
timeSliceDurationInMinutes
(只读)

时间片的持续时间(以分钟为单位)。

Integer
profilesTableName
(只读)

包含剖析的表的名称。

String
joinTableName
(只读)

边和剖析之间连接表的名称。

String
joinTableBaseTravelTimeFieldName
(只读)

连接表中基本行驶时间的字段名称。

String
joinTableBaseTravelTimeUnits
(只读)

连接表中基本行驶时间的单位。此属性返回以下关键字:

  • 秒
  • 分钟
  • 小时
  • 天

String
joinTableProfileIDFieldNames
(只读)

包含指向速度配置文件的连接表字段名称的 Python 列表。

List
joinTableBaseSpeedFieldName
(只读)

连接表中基本速度的字段名称。

String
joinTableBaseSpeedUnits
(只读)

连接表中基本速度的单位。此属性返回以下关键字:

  • MilesPerHour
  • KilometersPerHour
  • 未知

String
lengthAttributeName
(只读)

用于定义沿网络元素长度的网络成本属性名称。如果历史流量数据基于速度,则该属性可用于根据速度计算给定边的行驶时间。该属性可用于确定网络数据集是否使用基于速度或时间的配置文件类型进行配置。如果历史流量数据基于时间,此属性将返回空字符串。

String

代码示例

历史流量数据属性示例

显示网络数据集历史流量信息的摘要。

# Name: NDSHistoricalTrafficDataProperties_ex01.py
# Description: Print historical traffic information for the network dataset.

import arcpy
import sys

# Set the workspace
arcpy.env.workspace = "C:/Data/SanFrancisco.gdb/Transportation"

# Create Describe object for the network dataset
desc = arcpy.Describe("Streets_ND")

#Get the historical traffic data object
if desc.supportsHistoricalTrafficData:
    traffic = desc.historicalTrafficData
else:
    #If the directions are not set for the network dataset, exit 
    print "No historical traffic information"
    sys.exit() 

print "Historical Traffic Information ----" 
print "Time interval: " , traffic.timeInterval
print "Time interval units: " , traffic.timeIntervalUnits 
print "First time slice field name: " , traffic.firstTimeSliceFieldName 
print "Last time slice field name: " , traffic.lastTimeSliceFieldName 
print "First time slice start time: " , traffic.firstTimeSliceStartTime 
print "Time slice duration in minutes: ",traffic.timeSliceDurationInMinutes
print "Profiles table name: ", traffic.profilesTableName
print "Join table name: ", traffic.joinTableName
print "Join table base travel time field name: ", traffic.joinTableBaseTravelTimeFieldName
print "Join table base travel time units: ", traffic.joinTableBaseTravelTimeUnits
print "Join table ProfileID field names: ", traffic.joinTableProfileIDFieldNames

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2019 Esri. | 隐私政策 | 法律声明