FME Transformers: 2024.1

Categories
Data Quality
Database
Filters and Joins

GeometryFilter

Routes features based on their geometry type.

Each feature that enters the transformer is output via the port corresponding to its geometry type. Features are not altered.

Typical Uses

  • Writing to formats with different feature types for specific geometry types

  • Separating features based on geometry for further individual processing

  • Extracting one or more groups of features from a dataset based on geometry and discarding the rest

How does it work?

Once connected, the GeometryFilter lets you select which geometry types to filter incoming features by. All features are passed through the transformer, exiting via the port corresponding to their geometry type, or the unfiltered port for geometry types that were not selected.

Usage Notes

  • FME will sometimes automatically insert a GeometryFilter into a generated workspace. Some destination formats only permit features of a specific geometry type to be written to a single feature type. For example, a Personal Geodatabase Feature Type (Esri Feature Class) can hold polygons or polylines, but not both.

    When you read from a source dataset that permits multiple geometry types in a feature class, but write to a destination dataset that is restricted to a single geometry type per class, FME automatically creates a destination feature type for each geometry type and inserts a GeometryFilter to divide up the features on the basis of geometry. This ensures that no destination feature type receives features that it is not permitted to write.

  • When in Simple mode, Aggregate features are automatically homogenized and filtered based on their component type. To keep heterogeneous aggregates together and filter homogeneous aggregates based on their geometry type switch to Detailed mode. To filter all types of aggregates together use the AggregateFilter.

  • When in Simple mode, GeometryInstance features are automatically instantiated. To filter GeometryInstances without modification, switch to Detailed mode.

  • MultipleGeometry features are treated as aggregates in this transformer. To filter MultipleGeometry features specifically use the MultipleGeometryFilter.

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

Feature-Based

Feature Holding

No

Dependencies  
Aliases  
History  

FME Community

The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.

Search for all results about the GeometryFilter 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.