Relation Objects Display
The Relation objects display feature allows you to create logical connections between two different vector layers based on matching attribute data (table columns). Once the layers are linked, selecting an object on the first layer will automatically find and visually highlight all related objects on the second layer directly on the map.
Real-world Use Case
Imagine you have a "Land Parcels" layer and a "Buildings" layer. You want the app to automatically highlight all buildings located on a specific parcel when you click on it. You achieve this by linking the two layers in this configuration window using a shared attribute—for example, the "Parcel_ID" column.
Accessing the Tool
You can open the relations configuration window via the main layer menu:
Table of Contents (TOC) → Layer Vector Properties (gear icon) → Relation display
Detailed Settings Breakdown
1 Current (Source) Layer Settings
- Current Layer An informational field displaying the name of the layer you are currently configuring. This field cannot be changed.
- Style (Source Object) Defines how the initially clicked object will be graphically highlighted (colored) when the relation search is triggered. Click the field to open the style editor (color, line width, transparency). Note: This style is strictly temporary and is used exclusively while inspecting relations.
- Current Layer Columns Here you define the attributes (keys) used to link the layers. Click the (+) button to add a new search condition. You can add a maximum of 3 different columns.
Note: Geometry columns and binary data columns (BLOB) are automatically excluded and cannot be selected for defining relations.
2 Related (Target) Layer Settings
- Related Layer A dropdown list of all other vector layers currently loaded in your Workspace. Select the layer in which you want to search for connected objects.
- Style (Related Objects) Visible only after a related layer is selected above. This defines how all discovered connected objects on the target layer will be graphically highlighted. A contrasting color relative to the source style is highly recommended.
-
Related Layer Columns
Select the columns on the target layer whose values must perfectly match the columns from
the source layer.
Important: The order is strict! The first selected column in the source layer is compared against the first selected column in the related layer, and so on.
Advanced: Composite Keys
To optimize performance and prevent UI clutter, the interface supports joining by a maximum of three
keys. Using multiple columns (composite keys) is useful in databases where a single attribute cannot
uniquely define a relationship (e.g., matching by Road_ID AND
Section_No). The link is successful only if all selected pairs match. The
system natively supports 1-to-N relationships.
Disconnecting / Removing a Relation
If you wish to break an existing link between layers and disable the tool, reopen this window. In the Related Layer dropdown list, select the "none" option. The search configuration fields below it will hide immediately. To permanently delete the relation, you must click the Apply button. The relations button will then cease to appear in the Info window.
Using the Tool on the Map
Once your settings are saved, the functionality is seamlessly integrated into the Info window on the map:
- Select the "Object Information" tool from the main toolbar.
- Click on an object on the map that belongs to your source layer.
- In the top tab bar of the Info window, the Relation objects tab
appears whenever related records are found, featuring a blue badge with the number of connected features
(e.g.,
3). If no matching connections exist for the clicked object, the tab remains hidden to keep the header clean. - Click the Relation objects tab. The map will highlight your source object and all discovered related objects using your configured styles, and automatically adjust the map zoom to display all results simultaneously. Inside the Info window, you can browse the related records, zoom to individual items, or open them in the Browser.