HowTo: Label a related table
【相关信息】
Article ID: 43341
Software:
ArcGIS for Desktop Advanced 10.1, 10.2, 10.2.1, 10.2.2, 10.3
ArcGIS for Desktop Standard 10.1, 10.2, 10.2.1, 10.2.2, 10.3
ArcGIS for Desktop Basic 10.1, 10.2, 10.2.1, 10.2.2, 10.3
Platforms:
Windows Server 2008, Windows 7, Windows 8, Server 2008 R2
【问题描述】
Instructions provided describe how to label a related table using Python. There is no 'out-of-the-box' functionality to label a related table.
A basic understanding of Python functions and search cursors is needed.
Article ID: 43341
Software:
ArcGIS for Desktop Advanced 10.1, 10.2, 10.2.1, 10.2.2, 10.3
ArcGIS for Desktop Standard 10.1, 10.2, 10.2.1, 10.2.2, 10.3
ArcGIS for Desktop Basic 10.1, 10.2, 10.2.1, 10.2.2, 10.3
Platforms:
Windows Server 2008, Windows 7, Windows 8, Server 2008 R2
【问题描述】
Instructions provided describe how to label a related table using Python. There is no 'out-of-the-box' functionality to label a related table.
A basic understanding of Python functions and search cursors is needed.
1 个回复
EsriSupport
赞同来自:
The code below creates a FindLabel Python function. Relates are never created, but the two key fields are compared in a double iteration.
1. Open the Label Expression dialog box. a. Right-click the feature class to be labeled and select Properties. b. Click the Labels tab. c. Click Expression to open the Label Expression dialog box.
2. Select Python as the parser and check the Advanced check box.
3. Copy-paste the following code. Note that [keyfield], [FirstLabel], key1, key2, L, L2, and myDataTable must be changed to match the environment.
4. Click OK to return to the Layer Properties dialog box.
5. Click Apply to see the labels.
【其它相关参考】
【创建及修改时间】
Created: 10/29/2014
Last Modified: 11/14/2014
【原文链接】
http://support.esri.com/en/kno ... 43341
要回复问题请先登录或注册