リプレゼンテーション クラス プロパティ

概要

Describe 関数はリプレゼンテーション クラスに対して次のプロパティを返します。データセット プロパティもサポートされます。

リプレゼンテーション クラスの Describe プロパティは、ジオデータベース フィーチャクラスの GDBFeatureClass.representations プロパティまたは DescribeObject.children プロパティから取得できます。

リプレゼンテーション クラスが返す dataType は RepresentationClass です。

プロパティ

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

The name of the Override field.

String
requireShapeOverride
(読み取り専用)

Indicates if a shape override is required for feature representations.

Boolean
ruleIDFieldName
(読み取り専用)

The name of the RuleID field.

String

コードのサンプル

RepresentationClass properties example (stand-alone script)

The following stand-alone script displays properties for all the representation classes in a feature class.

import arcpy

# Create a Describe object
#
desc = arcpy.Describe("C:/data/moad.gdb/Water_Bodies")

# Print RepresentationClass properties for each representation 
#   in the feature class.
#
for child in desc.representations:
    if child.datasetType == "RepresentationClass":
        print(child.name)
        print("\t%-25s %s" % ("Override field name:", child.overrideFieldName))
        print("\t%-25s %s" % ("Shape override required:", child.requireShapeOverride))
        print("\t%-25s %s" % ("RuleID field name:", child.ruleIDFieldName))

このトピックの内容