Tables with non-geographic data can be published in a map service. These tables may provide data related to map features, such as comments on campground locations or the sales history of a property. These tables can be searched and queried like features. Relationships between map layers and tables can also be published and searched.
Layers and tables can be joined, either by using geodatabase relationship classes, or ad-hoc relationship assignments in ArcMap. When published with ArcMap, those relationships are preserved in ArcGIS Server. The connection between related features and tables is stored within the relationships
property of the layer and table. A developer can query related data, based on a selection in the parent feature class.
Relationship objects have the same general format. Each relationship object contains a numerical id
and relatedTableId
. The relatedTableId
is linked to the RelationshipQuery
object to query for related results. The role describes whether the...