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
  • 我的个人资料
  • 登出

帮助

  • 主页
  • 入门
  • 制图
  • 分析
  • 管理数据
  • 工具
  • 更多...

制图表达类属性

  • 摘要
  • 属性
  • 代码示例

摘要

Describe 函数可返回制图表达类的以下属性。还支持数据集属性。

表达类的 Describe 属性可以从 GDBFeatureClass.representations 属性或 GDB FeatureClass 的 DescribeObject.children 属性获取。

表达类可返回“RepresentationClass”的 dataType。

属性

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

覆盖字段的名称。

String
requireShapeOverride
(只读)

表明要素表达是否需要形状覆盖。

Boolean
ruleIDFieldName
(只读)

RuleID 字段的名称。

String

代码示例

RepresentationClass 属性示例(独立脚本)

以下独立脚本显示要素类中所有表达类属性。

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)

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

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

关于 Esri

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