ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • ヘルプ
  • Sign Out
ArcGIS Desktop

ArcGIS Online

組織のマッピング プラットフォーム

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS Developers

位置情報利用アプリの開発ツール

ArcGIS Solutions

各種業界向けの無料のテンプレート マップおよびテンプレート アプリケーション

ArcGIS Marketplace

組織で使えるアプリとデータを取得

  • ドキュメント
  • サポート
Esri
  • サイン イン
user
  • マイ プロフィール
  • サイン アウト

ArcMap

  • ホーム
  • はじめに
  • マップ
  • 解析
  • データ管理
  • ツール
  • エクステンション

RelationshipClass properties

  • 概要
  • プロパティ
  • コードのサンプル

概要

The Describe function returns the following properties for Relationship Classes. GDB Table Properties, Table Properties, and Dataset Properties are also supported.

Learn more about Relationship class properties

A Relationship Class returns a dataType of "RelationshipClass".

プロパティ

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

The backward path label for the relationship class.

String
cardinality
(読み取り専用)

The cardinality for the relationship class.

  • OneToOne
  • OneToMany
  • ManyToMany
String
classKey
(読み取り専用)

Class key used for the relationship class.

  • Undefined
  • ClassID
  • ClassCode
String
destinationClassKeys
(読み取り専用)

A list of tuples, with the object key name, and key role (DestinationPrimary, DestinationForeign).

tuple
destinationClassNames
(読み取り専用)

A list containing the names of the destination classes.

String
forwardPathLabel
(読み取り専用)

The forward path label for the relationship class.

String
isAttachmentRelationship
(読み取り専用)

Indicates whether the relationship class represents a table attachment.

Boolean
isAttributed
(読み取り専用)

Indicates whether the relationships in this relationship class have attributes.

Boolean
isComposite
(読み取り専用)

Indicates whether the relationship class represents a composite relationship in which the origin object class represents the composite object.

Boolean
isReflexive
(読み取り専用)

Indicates whether the origin and destination sets intersect.

Boolean
keyType
(読み取り専用)

Key type for the relationship class.

  • Single
  • Dual
String
notification
(読み取り専用)

The notification direction for the relationship class.

  • None
  • Forward
  • Backward
  • Both
String
originClassNames
(読み取り専用)

A list containing the names of the origin classes.

String
originClassKeys
(読み取り専用)

A list of tuples, with the object key name, and key role (OriginPrimary, OriginForeign).

tuple
relationshipRules
(読み取り専用)

The relationship rules that apply to this relationship class.

Object

コードのサンプル

RelationshipClass properties example (stand-alone script)

The following stand-alone script displays properties for a relationship class.

import arcpy

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

# Print relationship class properties
#
print "%-25s %s" % ("Backward Path Label:", desc.backwardPathLabel)
print "%-25s %s" % ("Cardinality:", desc.cardinality)
print "%-25s %s" % ("Class key:", desc.classKey)
print "%-25s %s" % ("Destination Class Names:", desc.destinationClassNames)
print "%-25s %s" % ("Forward Path Label:", desc.forwardPathLabel) 
print "%-25s %s" % ("Is Attributed:", desc.isAttributed)
print "%-25s %s" % ("Is Composite:", desc.isComposite) 
print "%-25s %s" % ("Is Reflexive:", desc.isReflexive)
print "%-25s %s" % ("Key Type:", desc.keyType)
print "%-25s %s" % ("Notification Direction:", desc.notification)
print "%-25s %s" % ("Origin Class Names:", desc.originClassNames)

ArcGIS Desktop

  • ホーム
  • ドキュメント
  • サポート

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Esri について

  • 会社概要
  • 採用情報
  • Esri ブログ
  • ユーザ カンファレンス
  • デベロッパ サミット
Esri
ご意見・ご感想をお寄せください。
Copyright © 2021 Esri. | プライバシー | リーガル