Spatial relationships automatically update features based on their location relative to other features to help aid general editing and maintaining these relationships. These are used to speed up filling out information when adding new features. It is most often used to update a child record with a parent records ID number. For example it can update play ground equipment with the park id. The spatial relate can update any fields, whether or not they are linked to lucity and it can use non-Lucity feature classes to update Lucity feature classes.
Triggering a Spatial Relationship update
The GIS Task that syncs your GIS data in your Feature Service into Lucity has an option to Update Spatial relationship.
Considerations
Which features require data from other features?
Which features would benefit from having data pulled over from other features?
Select the record in the grid and fill out the Spatial Relationship Info section at the bottom.
* Populate the Field to Update with the Field name of the field in the selected feature class layer that will be automatically updated.
* Populate the Service that contains related layer with the name of the feature service that contains the layer the current feature class layer should be related to. (Only necessary if the related layer is not in the same service)
* Populate the Related Layer Name with the name of the feature class layer that the current feature class layer should be related to.
* Populate the Related Layer Field with the field name of the field in the Related Layer Name that contains the value that will update the Field to Update field.
* Populate the Relationship Type using the drop down list of predefined relationships.
From Intersect: Finds any features in the Related Layer that intersect the from point of the feature in the selected feature class layer. This relationship only works for polyline, edge, or complex edge features.
To Intersect: Finds any features in the Related Layer that intersect the To Point of the feature in the selected feature class layer. This relationship only works for polyline, edge, or complex edge features.
Is Contained by: Finds any features in the selected feature class layer that are contained by features in the Related Layer. The Related Layer must be a polygon feature class layer.
Intersects: Finds the first feature in the Related Layer that intersects the feature in the selected feature class.
To Intersect Distance: Finds the first feature in the related feature class layer that intersects the feature in the currently selected feature class layer. It then calculates the distance along the related feature between the intersection location and to point. If the selected feature class layer is of a polyline geometry type then it requires the 'to point' of the selected feature to intersect the related feature. This relationship type requires the related feature class layer to be a polyline geometry type.
From Intersect Distance: Finds the first feature in the related feature class layer that intersects the feature in the currently selected feature class layer. It then calculates the distance along the related feature between the intersection location and the from point. If the selected feature class layer is of a polyline geometry type then it requires the 'to point' of the selected feature to intersect the related feature. This relationship type requires the related feature class layer to be a polyline geometry type.
Midpoint Intersect: Finds any feature in the related feature class layer that intersects the midpoint of the feature in the selected feature class layer. This relationship is designed for polyline, edge, or complex edge features as the selected feature class layer, and a polygon feature for the related feature class layer.
Force Feature to Self-Update: This relationship finds any features that intersect the feature in the selected feature class layer and adds them to the edit cache so that they are synced to lucity even if the records have not changed. This is used primarily for the street segment feature class with the street intersection feature class (as Related Layer). This forces the intersections to automatically recalculate the intersection configurations for the diagram in the desktop Intersection module when street segments are changed.
Is Within Distance of: Finds all features in the Related Layer that are with a specified distance of the feature in the selected feature class.
Populate the Distance Value.
Required only if the relationship type Is Within Distance Of has been selected. The field is used to specify a distance for this relationship type.
Never Overwrite a Non-Null Value.
Optional. Check this box to ensure that data populated in the Field to Update field of the selected feature class is never overwritten if a value already exists.
Update Value to Null if No Relationship is Found.
Optional. Check this box to allow the Field to Update field to be set to null if no relationship is found.
This information will be saved when another node is selected of the form is closed.
Note: Spatial Relationships can be edited anytime after saving them