Curvefitter

Replaces geometry with an optimal path of line segments and arcs, creating smooth, curving lines and areas.

Jump to Configuration

Typical Uses

  • Optimizing file size or processing by reducing vertices

  • Smoothing jagged geometry

  • Restoring stroked arcs

How does it work?

The CurveFitter receives line and area features and replaces their geometry with a path composed of lines and arcs.

An optimal path is calculated based on a number of parameters:

  • Precision - the maximum amount the new geometry may deviate from the original.

  • Flattening - allows shallow curves to be converted to straight line segments.

  • Weighting - Compression, Smoothness, and Accuracy Weight may be adjusted to emphasize desired outcomes.

Adjacent area boundaries may be preserved, preventing the introduction of gaps and overlaps.

Examples

Usage Notes

  • In general, arcs do not reproject well. Consider using the ArcStroker prior to reprojecting arcs.

  • In some cases such as working with contours, the Generalizer and its numerous Algorithm choices may be a better choice of transformer.

  • Not all formats support path geometry, and so CurveFitter results may be stroked when writing to them. The PathSplitter can be used to break a path into its component lines and arcs. See Path geometry.

Creating and Modifying Arcs, Circles, and Ellipses

These transformers work with arcs in a variety of ways.

Configuration

Input Ports

Output Ports

Parameters

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.

Defining Values

There are several ways to define a value for use in a Transformer. The simplest is to simply type in a value or string, which can include functions of various types such as attribute references, math and string functions, and workspace parameters. There are a number of tools and shortcuts that can assist in constructing values, generally available from the drop-down context menu adjacent to the value field.

Dialog Options - Tables

Transformers with table-style parameters have additional tools for populating and manipulating values.

Reference

Processing Behavior

Feature-Based

Feature Holding

No, except when Preserve Shared Boundaries is Yes.

Dependencies None
Aliases  
History Formerly an extra-cost add-on.

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

 

Examples may contain information licensed under the Open Government Licence – Vancouver and/or the Open Government Licence – Canada.