FME Transformers: 2025.0

Categories
Data Quality
Geometries
Related Transformers
Generalizer

SpikeRemover

Removes spikes from line, path, and area geometry.

Jump to Configuration

Typical Uses

  • Data QA and cleaning
  • Generalization

How does it work?

The SpikeRemover receives features with line, path, or area geometry and removes vertices that create angles less than or equal to a specified maximum between zero (0) and 180 degrees.

Spikes can be removed either in a single pass through the feature or iteratively, where new spikes created by spike removal are also removed until none remain.

Polygons with spikes created by their first or last points will have those spikes removed. Closed lines, however, will not. Consecutive duplicate points are also removed, whether or not they occur in a spike.

Donut polygons and aggregate geometries are supported.

Altered and unaltered geometries are output, as well as any removed vertices as points. If Remove Spikes Iteratively is No, the Removed points will receive attributes with spike angle and length.

Z values are optionally supported.

A Maximum Spike Length may be specified, and the shorter of the two sides is considered to determine overall spike length. In most cases this parameter should remain blank.

Examples

Usage Notes

  • The SpikeRemover is not effective when the geometry has many deviations other than spikes. Consider using a Generalizer with the Douglas-Peucker algorithm.

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 None
Aliases  
History  

FME Community

The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.

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