You are here: Filters > SpatialFilter

SpatialFilter

Filters point, line, area, and text features based on spatial relationships. Each input Candidate feature is compared against all Filter features, based on the given spatial tests to meet. Features that pass any test are output through the Passed port; all other features are output through the Failed port.

Note: If you need to determine the relationships between the Filter and Candidate features, or if you have many Filter features, you should use the SpatialRelator transformer. To determine relationships based on proximity, use the NeighborFinder transformer.

For example, if you have a group of features that you want to check against a polygon to isolate those that are inside, the polygon feature would be directed into the Filter port and the group of features would be directed into the Candidate port. Tests to Perform would be set to CONTAINS. Those features that are inside the polygon would come out the Passed output port and those which were not inside would come out the Failed output port.

Input Ports

Output Ports

Parameters

Transformer

Tests

Output

Usage Notes

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

Editing Transformer Parameters

Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.

Transformer Categories

Filters

Licensing Level

FME Base Edition

Technical History

Associated FME function or factory: SpatialFilterFactory

 

Search FME Knowledge Center

Search for samples and information about this transformer on the FME Knowledge Center.

Tags Keywords: MBR "minimum bounding rectangle"