User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.simplify_2_double_wordbool

Table of Contents

ITGIS_Shape.Simplify_2 method

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.

Available also on: Delphi | .NET | Java | Python.

Syntax

// 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;

Parameters

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.

Result

Type Description
ITGIS_Shape The simplified shape, either as a new object or as the modified source shape, depending on _returnnewobj.

Remarks

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.

2026/07/05 01:25

Page Tools