FME Transformers: 2026.2

Categories
Data Quality
Geometries
Spatial Analysis

Snapper

Brings lines, segments, end points or vertex points of features together if they are within a certain distance of each other and (optionally) if they have one or more attributes in common.

How does it work?

Once all input features are read, the Snapper proceeds through them one by one, snapping each against all features in the dataset. Features will snap to the nearest neighbor, up to the specified Snapping Distance.

Each feature is only snapped once, at which point it becomes a static magnet that attracts other features. This means that some features will snap to one of those magnets rather than their actual nearest neighbor.

It also means that features won't move more than the specified snap distance, as they stay in place after snapping once.

A short cleanup step is performed after snapping. This step will remove duplicate points, and may create aggregates to preserve overlapping, directed segments.

Any feature that undergoes dimensional collapse as a result of being snapped will be output through the Collapsed port.

Example

The example below illustrates end points of two line features snapping together.

 

 

The example below illustrates an endpoint and a vertex of a line snapping together.

 

 

The example below illustrates vertices of a segment snapping to another segment.

 

Usage Notes

  • You can clean up a dataset by using a Snapper before trying more complex actions, such as building polygons. Other transformers that are often used in this context are the LineExtender and Intersector.
  • The AnchoredSnapper transformer provides slightly different functionality by identifying a set of features which will not be moved and will be snapped to by another set of features.

Configuration

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

Group-Based

Feature Holding

Yes

Dependencies None
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 Snapper 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.