DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.Simplify_2 | Methods | Properties
Simplifies the shape using the Douglas-Peucker algorithm, either in place or by creating a new result shape.
// C# public ITGIS_Shape Simplify_2( double _tolerance, WordBool _returnnewobj );
' VisualBasic Public Function Simplify_2( ByVal _tolerance As Double, ByVal _returnnewobj As WordBool ) As ITGIS_Shape
// Oxygene public function Simplify_2( _tolerance : Double; _returnnewobj : WordBool ) : ITGIS_Shape;
| Name | Type | Description |
|---|---|---|
| _tolerance | double Double | Simplification tolerance in map units. |
| _returnnewobj | WordBool | If True, returns a new simplified shape and leaves this shape unchanged; if False, modifies this shape and returns it. |
| Type | Description |
|---|---|
| ITGIS_Shape | The simplified shape, either as a new object or as the modified source shape, depending on _returnnewobj. |
PURPOSE: Reduces vertex count while allowing the caller to choose between copy semantics and in-place modification.
BEHAVIOR: Applies the same Douglas-Peucker simplification as the parameterless ownership overload. When _returnnewobj is False, this shape is updated and returned.
CONSTRAINTS: Tolerance is expressed in map units. Ownership of the result depends on _returnnewobj.