FME Transformers: 2026.3

Categories
Data Quality
Database
Filters and Joins
Related Transformers
AggregateFilter
AttributeFilter
ClosedCurveFilter
ConvexityFilter
FeatureTypeFilter
GeometryValidator
MultipleGeometryFilter
PlanarityFilter
SpatialFilter
TestFilter

GeometryFilter

Routes features based on their geometry type.

Typical Uses

  • Preparing features for writing to formats with specific geometry requirements
  • Separating features based on geometry for further processing
  • Extracting features from a dataset based on geometry and discarding the rest

Jump to Configuration

How does it work?

The GeometryFilter receives features of any type and outputs them via multiple output ports based on what kind of geometry they have.

There are two modes:

  • Simple: Filters by broad geometry categories.
  • Detailed: Filters using the full FME Geometry Model.

Simple Filtering

In Simple Mode, any or all of these geometry types may be selected:

  • Null
  • Point
  • Text
  • Line
  • Area
  • Surface
  • Solid
  • Raster
  • PointCloud
  • No Geometry

Output ports are created for each selected type, and any features that do not match a selected type are output via the <Unfiltered> port.

Aggregates are passed through the appropriate port unaltered if they are homogeneous. If they contain more than one geometry type, they are split into individual aggregates, one for each type.

Features with multiple geometries are treated as aggregates.

Geometry instances are instantiated.

Detailed Filtering

In Detailed Mode, any or all granular geometry types may be selected.

Types are presented as a tree, as in the FME Geometry Model.

When selecting types at different levels within the tree, features will be output through the most specific port available.

If a parent type is selected, all geometry types under that type will be output via the parent port unless the child port is also selected, in which case features will prefer the child port.

In this example, ellipses are output via the IFMEEllipse port, and all other areas via the IFMEArea port.

Aggregates have their own geometry type and output port. Heterogeneous aggregates are kept intact.

Features with multiple geometries are treated as aggregates.

Geometry instances can be kept and output via GeometryInstance or they may be instantiated. They may also be kept as definitions only and output via the port matching the geometry contained in the instance.

Note  When switching between Simple and Detailed mode, take particular care with geometry selections in Output Ports. Ports and connections may be added or lost where geometry types are not exactly equivalent.

Usage Notes

  • When using Build > Generate Workspace, GeometryFilters are often inserted automatically when writing to formats with geometry rules.
  • Geometry collections are aggregates but are not part of the geometry model. Use a Tester or AttributeFilter to test for fme_type = fme_collection. See fme_type.
  • Features with multiple geometries are treated as aggregates in this transformer. To filter them explicitly, use a 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 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 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.