操作方法
When working with related tables in ArcMap, some form of unique value is required to represent the relationship between the 'primary key' and 'foreign key'. Esri recommends creating relationships using the GlobalID field on the layer so the primary key of the relationship is unique when establishing a connection to a new inspection record.
The most convenient way to achieve this is through Global IDs and GUIDs. Both data types store registry style strings comprising 36 characters enclosed in curly brackets, for example, {90A942E1-BC7C-4F1E-94D5-AACAAD24F08C}.
Global IDs and GUIDs have a few differences. ArcGIS actively maintains Global ID fields (that is, when a new feature is created, a Global ID value is assigned), whereas, GUID fields are left blank. The onus is on the user to maintain these fields.
To use related tables in a Relationship Class, the Global ID in the origin table can be used as the primary key, and the GUID field in the destination table can be used as the foreign key. Using this method, ArcGIS automatically copies the primary key (Global ID) into the foreign key (GUID) field.
Note:
ArcGIS Collector on the Windows platform is officially in deprecation and scheduled to retire on Oct 1st, 2024.
ArcGIS Field Maps launched in the fall of 2020 (on Android and iOS) as the next generation successor to several of Esri’s field apps, including Collector.
ArcGIS 10.8.2 is the current release of ArcGIS Desktop and enters Mature Support in March 2024. There are no plans to release an ArcGIS Desktop 10.9. It is recommended that you migrate to ArcGIS Pro. See Migrate from ArcMap to ArcGIS Pro for more information.
The following workflow demonstrates how to set up related tables for use in ArcGIS Collector or ArcGIS Field Maps by adding Global IDs in ArcCatalog. In this example, a relationship is made between a feature class, Weeds, and a related table, Inspections.
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序