FME Transformers: 2024.1

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?

The difference between the AnchoredSnapper and the Snapper is that anchor features are considered to be accurate and consequently do not move.

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

  • The Snapper snaps to the first suitable candidate that is found and then ignores the other possible candidates. If this is not what you're looking for, the CoordinateRounder may be useful instead. 
  • 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.

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 Snapper on the FME Community.