操作方法
表格数据对于提供要素图层的附加属性信息非常有用。 虽然包含地理信息(经纬度)的表格数据可以使用显示 XY 数据功能在地图上显示,但不含地理信息的表格数据则可以通过执行连接操作或使用创建查询表工具与包含地理信息的要素图层相关联。
在本示例中,展示了马来西亚半岛中部一次野外考察的详细信息。 下图显示了来自要素图层和非空间表格数据的数据。
名为 Fieldwork_Location 的要素图层包含纬度和经度形式的地理信息。 其他字段包括 Site、Geologic Age、Number of rock samples collected、Number of students and fieldworkers、Total cost for fieldwork (RM) 和 Shape。 Site 字段用于与非空间表格数据建立关系。
名为 Tabular_data_Sedimentology 的非空间表格数据包含以下字段:Site、Main rock type、Secondary rock type 以及 Inferred depositional environment。 Site 字段是该表格数据与要素图层之间构成一对一关系的共同属性。
名为 Tabular_data_Fossils 的非空间表格数据包含以下字段:Site、Fossils collected、Number of fossils collected 以及 Total fossils collected。 Site 字段与要素图层中的 Site 字段为一对多关系,并且是表格数据和要素图层之间的共同属性。
(要素图层):(表格数据)具有一对一 (1:1) 关系
当非空间表格数据与要素图层存在一对一关系时,应先执行连接操作,然后再对连接后的数据进行符号化。 有关详细信息,请参阅连接表的基础知识和管理连接表。
要素图层的属性表将显示从表格数据连接而来的信息。
(要素图层):(表格数据)具有一对多 (1:M) 关系
在 ArcMap 中,一对多 (1:M) 或多对多 (M:M) 关系通常通过在要素图层和表格数据之间创建关联来建立。 然而,也可以使用创建查询表工具将非空间表格数据与要素图层按一对多关系进行连接。 有关详细信息,请参阅 操作方法:在 ArcMap 中创建一对多连接。
Note: For this method, the following caveats must be noted. • Use non-spatial tabular data stored within a geodatabase or database connection • Symbolize related data up to a second-level nested relationship
Note: Include the Shape field in the selection to create a temporary layer output. Otherwise, a table view is returned.
一个临时图层将被创建并显示在内容列表中。
Note: The temporary layer created remains in Table Of Contents if the document is saved before ArcMap is closed. However, the layer is not stored in the geodatabase, so it is not available for other projects. To create a permanent feature class, use methods such as exporting the data or the Copy Features tool. Alternatively, use the Save To Layer File tool to create a layer file.
Note: For the Variation by field, only integer fields are listed in the Value field drop-down. So, it is possible to symbolize related data only with a numeric variable.
下图显示了基于 Number of fossils collected 对关联数据(采集的化石)进行符号化的效果。 化石的类型通过颜色区分,而采集的化石数量则通过大小区分。
Note: In ArcGIS Online, it is possible to symbolize related data by creating a one-to-many join using Join Features between a feature layer and non-spatial tabular data, and symbolizing the output join layer using the Types and Size symbology.![]()
文章 ID: 000022371
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序