Command: generalize

Syntax

generalize <num> { ,<elist> ... }

Description

Execute vector generalization on graphic entities (polygons and polylines).

Generalization performs vector smoothing according to a supplied generalization factor (distance). Points which are within distance of each other are removed, and those which are within distance from the centre-line are snapped to form a new center-line.

Parameters

Switches

Notes

Entities are generalized in place.

Sub-entities of compounds may be generalized in isolation from their parent entities.

The smoothing algorithm used by this command is the Douglas-Peucker Hull algorithm, see:
"D. H. Douglas and T. K. Peucker. Algorithms for the reduction of the number of points required to represent a line or its caricature."
The Canadian Cartographer, 10(2):112--122, 1973.

Examples

Generalize the these group.

generalize 10

Generalize two entities and remove if less than a supplied area.

generalize 10, fred, my_face, -ar=500

See Also

Commands:

entity, group, modify

Functions:

pgeneralize

Identifiers:

current_filter (filter), these (group)

Structures:

entity