SherbendGeneralizer

Uses the Sherbend algorithm to simplify lines by reducing unnecessary details based on the analysis of the line’s bends.

Sherbend is a constraint-based algorithm that preserves the spatial relationship of the lines and points in the input data.  The Sherbend algorithm iteratively generalizes the bends in a line by using the Diameter parameter to select bends for generalization. The generalization process may eliminate, reduce, or combine bends, while resolving conflicts.

The strategy for generalizing bends in a line is as follows:

Input Ports

Output Ports

Parameters

Transformer

Parameters

Examples

In this example, a bend is reduced (green = input, red = output):

In this example, a bend is eliminated:

In this example, three bends are combined into one:

The following diagram illustrates the generalization process on a single line in a real-world dataset:

This example illustrates the generalization process on a set of contours:

Additional Information

The aim of line generalization is to reduce the details on a line for representation at a smaller scale. While the well-known Douglas-Peucker algorithm, is good at reducing the number of points in a line, it is not so good at removing unnecessary details in a line. The Generalizer transformer contains a selection of algorithms under its parameters including the Douglas-Peucker algorithm.

In comparison, the Sherbend algorithm is well suited for the generalization of natural features (contours, lakes, rivers, wooded areas, etc.) because it preserves the general shape of the line. Moreoever, if spatial constraints are enabled, the spatial relationship between the input entities are preserved. The Douglas-Peucker algorithm with a small tolerance is often used before or after Sherbend to further reduce the number of points to further fulfill the goals of generalization.

Performance and Usage Notes

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.

Transformer Categories

Cartography and Reports

Geometries

Search FME Knowledge Center

Search for samples and information about this transformer on the FME Knowledge Center.