You are here: Filters and Joins > GeometryFilter

GeometryFilter

Routes a feature based on its geometry type.

Each feature that enters the transformer is output via the port corresponding to its fme type. Each output feature has a complete, unaltered copy of the source feature's attributes and geometry.

Output Ports

Each output port corresponds to standard FME Geometry Model attribute values.

Parameters

Example

View results by routing a feature type through a GeometryFilter to an Inspector.

If you route a feature type that contains point geometry through the GeometryFilter Point output port to an Inspector, you will see only the fme_point geometry:

The Information pane in the Universal Viewer shows the fme_geometry and fme_type:

Usage Notes

FME will sometimes automatically insert a GeometryFilter into a new 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.

Related Transformers

Aggregate features are not handled specifically by this transformer, as several geometries may be structured as aggregates. To filter aggregates, use the AggregateFilter.

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

Data Quality

Filters and Joins

Search FME Knowledge Center

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