ネットワーク データセット プロパティ

サマリ

Describe 関数はネットワーク データセットに対して次のプロパティを返します。データセット プロパティもサポートされます。

ネットワーク データセットが返す dataTypeNetworkDataset です。

ネットワーク データセットは、輸送ネットワークのモデル化に使用されます。

プロパティ

プロパティ説明データ タイプ
networkType
(読み取り専用)

The type of workspace containing the network dataset. This property returns the following keywords:

  • Geodatabase
  • Shapefile
  • SDC

String
supportsTurns
(読み取り専用)

Indicates if the network dataset supports turns.

Boolean
isBuildable
(読み取り専用)

Indicates if the network dataset can be built. SDC-based network datasets cannot be built as they are read-only.

Boolean
catalogPath
(読み取り専用)

The path of the network dataset.

String
attributes
(読み取り専用)

Returns a Python list of Network Attribute objects.

Object
edgeSources
(読み取り専用)

Returns a Python list of Edge Source objects.

Object
junctionSources
(読み取り専用)

Returns a Python list of Junction Source objects.

Object
turnSources
(読み取り専用)

Returns a Python list of Turn Source objects.

Object
systemJunctionSource
(読み取り専用)

Returns a System Junction Source object defined for the network dataset. This property is not available with SDC-based network datasets as they do not system junction sources.

Object
supportsDirections
(読み取り専用)

Indicates if the network dataset supports generating directions.

Boolean
directions
(読み取り専用)

Returns a Network Directions object defined for the network dataset. This object can be used to get directions information at the network dataset level. The directions property is available only if the supportsDirections property returns true.

Object
sources
(読み取り専用)

Returns a Python list of Network Source objects. This property returns all the sources for the network dataset. If you want to get a list of particular source type, for example, only the edge sources, use the edgeSources property.

Object
elevationModel
(読み取り専用)

The network elevation model used to refine the connectivity of the network dataset. This property returns the following keywords:

  • None
  • Elevation Fields
  • Z Coordinate Values

String
timeZoneAttributeName
(読み取り専用)

The name of the time zone attribute. If the network dataset does not support time zones, this property returns an empty string.

String
timeZoneTableName
(読み取り専用)

The name of the time-zone table that stores the list of time-zones used by the network dataset.

String
supportsHistoricalTrafficData
(読み取り専用)

Indicates if the network dataset supports the use of historical traffic information.

Boolean
historicalTrafficData
(読み取り専用)

Returns a Historical Traffic Data object defined for the network dataset. This object can be used to get historical traffic information such as the historical traffic tables used by the network dataset. This property is availabe only if the supportsHistoricalTrafficData property returns true.

Object

コードのサンプル

Network Dataset Properties Example

Display some network dataset properties.

# Name: NDSProperties_ex01.py
# Description: Print some of the network dataset properties.
import arcpy

# Set the workspace
arcpy.env.workspace = "C:/Data/Paris.gdb/Transportation"
# Create Describe object for the network dataset
desc = arcpy.Describe("ParisMultimodal_ND")

# Print general network dataset properties
print "Network type:   " + desc.networkType
print "Supports turns? " + str(desc.supportsTurns)
print "Supports directions? " + str(desc.supportsDirections)
print "Is buildable?   " + str(desc.isBuildable)
print "Elevation model: " + desc.elevationModel
print "Supports historical traffic data: " + str(desc.supportsHistoricalTrafficData)
print "Time zone attribute name: " + desc.timeZoneAttributeName
print "Time zone table name: " + desc.timeZoneTableName


7/10/2012