You are here: FME Transformers > Calculators > SpatialRelator

SpatialRelator

Determines topological (spatial) relationships between sets of features.  It tags – but does not otherwise change – features when they have certain relationships, such as touches, overlays, intersects, and so forth. Use this transformer when you need to determine the relationships between features or if you have many BASE features. If you only need to determine if the features are related and you only have a few BASE features, the SpatialFilter transformer is more efficient.

All BASE features are output through the OUTPUT port, with a new list attribute appended. Each input CANDIDATE feature is compared against the BASE features, based on the spatial tests specified in the Tests to Perform parameter. When one of the comparisons is true, an entry is added to the BASE’s list attribute as follows:

<LIST_NAME>{i}.de9im   = [DE9IM string]

<LIST_NAME>{i}.pass{0} = [true PREDICATE 1]

<LIST_NAME>{i}.pass{1} = [true PREDICATE 2]

...

<LIST_NAME>{i}.pass{n} = [true PREDICATE n+1]

Additionally, all attributes of the matching CANDIDATE will be added to the list.

As well, each BASE receives the attributes of the CANDIDATEs that passed the relationship, resulting in an operation referred to as a Spatial Join  When attributes are merged down from CANDIDATE to BASE features, existing attributes are not replaced. Therefore if the CANDIDATEs and BASEs have attributes with the same name, then the values will not be transferred down.  This can be worked around by renaming (AttributeRenamer), prefixing (AttributeExpressionRenamer), or removing (AttributeRemover) attributes to avoid name collisions.

Input Ports

Output

Parameters

Usage Notes

See Spatial Relations Defined for more information on spatial predicates and an illustration of spatial relationships.

Geometry Handling (applicable to some FME workspaces prior to FME 2012)

If the Geometry Handling Advanced setting is set to Enhanced in the workspace, arcs, and ellipses are stroked prior to the testing of any relationship predicates; they are otherwise regarded as points located at their respective center points.

Editing Transformer Parameters

About Transformer Parameter Options

Transformer Categories

Calculators

FME Licensing Level

FME Professional edition and above

Search FMEpedia

Search for samples and information about this transformer on FMEpedia.