FME Transformers: 2026.3

Categories
Data Quality
Filters and Joins
Spatial Analysis
Related Transformers
AreaOnAreaOverlayer
Bufferer
Clipper
Intersector
LineOnAreaOverlayer
LineOnLineOverlayer
NeighborFinder
PointOnAreaOverlayer
PointOnLineOverlayer
PointOnPointOverlayer
SpatialFilter
TopologyBuilder

SpatialRelator

Identifies what types of spatial relationships exist between features.

Jump to Configuration

Typical Uses

  • Testing for specific spatial relationships, adding results as attribute values for use elsewhere
  • Performing a spatial join to transfer attributes from one feature to another based on their spatial relationship

How does it work?

The SpatialRelator receives two sets of features (points, lines, areas, or text):

  • Requestor: Features of interest, to be tested against Suppliers. These features will be output with their test results.
  • Supplier: Features to compare to Requestors. These features are not output - they are discarded after use.

Features can be tested for any of these spatial relationships:

  • Requestor OGC-Intersects Supplier
  • Requestor OGC-Equals Supplier
  • Requestor OGC-Touches Supplier
  • Requestor OGC-Contains Supplier
  • Requestor is OGC-Within Supplier
  • Requestor OGC-Crosses Supplier
  • Requestor OGC-Overlaps Supplier

Aggregate geometries are not supported by all tests. 9-character masks may also be used- see Dimensionally Extended 9 Intersection Matrix.

Attributes may be acquired from Suppliers. Test results, including spatial relationship type and optional attributes, may be added as a list attribute.

All Output features receive a count of matched Suppliers.

Examples

Usage Notes

  • See Spatial Relations Defined for more information on spatial predicates and an illustration of spatial relationships.
  • Spatial relations are based on the OGC specification and so are undefined for geometries that are not OGC valid.
  • Aggregates are accepted by a subset of predicates, but should be used with care. See Spatial Relations Defined for more information.

Choosing a Spatial Transformer

Many transformers can assess spatial relationships and perform spatial joins - analyzing topology, merging attributes, and sometimes modifying geometry. Generally, choosing the one that is most specific to the task you need to accomplish will provide the optimal performance results. If there is more than one way to do it (which is frequently the case), time spent on performance testing alternate methods may be worthwhile.

To correctly analyze spatial relationships, all features should be in the same coordinate system. The Reprojector may be useful for reprojecting features within the workspace.

Configuration

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

Reference

Processing Behavior

Group-Based

Feature Holding

Yes

Dependencies  
Aliases  
History  

FME Online Resources

The FME Community and Support Center Knowledge Base have a wealth of information, including active forums with 35,000+ members and thousands of articles.

Search for all results about the SpatialRelator on the FME Community.

 

Examples may contain information licensed under the Open Government Licence – Vancouver, Open Government Licence - British Columbia, and/or Open Government Licence – Canada.