FME Transformers: 2024.2

Categories
Geometries
Related Transformers
Clipper
CoordinateExtractor
Densifier
Snipper

Chopper

Chops line, arc, path, or area features into smaller features based on number of vertices or approximate length.

Jump to Configuration

Typical Uses

  • Chopping features into individual points

  • Chopping features into a series of two-point lines

  • Chopping features to work with formats that have limits on the number of coordinates per feature

How does it work?

The Chopper receives vector features including lines, arcs, paths, and areas, and breaks them into smaller pieces. Attributes are preserved on all output features.

New vertices are not added to the feature. Chopping is done at existing vertices, guided by a choice of Mode:

  • By Vertex: Features are chopped at the interval specified in Maximum Vertices. Output features with fewer vertices than the maximum are tagged as remnants (generally the last segment).

  • By Length: An Approximate Length is specified, in ground units. The input features are chopped into segments as close as possible to this length, without adding new vertices. Output feature lengths will vary, depending on the length value and distance between vertices on the feature.

Action

Values

Result

None (Input Feature)

 

Chop into single points.

Chop into two-point lines.

Chop into four-point lines - note the last segment is a remnant.

Chop by a length that coincides with vertex locations.

Chop by a length that does not coincide with vertex locations. Note that the nearest vertex is the chopping location.

Chopped features are output via the Chopped output port. Untouched features exit via Untouched.

Arcs are stroked prior to determining chopping locations. They are output as line segments if chopped, and as the original arc if untouched.

Input features with point geometry are unaltered and passed through the Untouched output port.

Z values are preserved.

Usage Notes

  • The Densifier may be useful in preparing to chop by length.

Creating and Modifying Linear Features

These transformers work with lines in a variety of ways.

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 Chopper 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.