User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_shape.simplify_double_boolean

Table of Contents

TGIS_Shape.Simplify(double, bool) method

DK11 for .NET | TatukGIS.NDK.TGIS_Shape.Simplify | Overloads | Constructors | Fields | Methods | Properties

Line generalization routine.

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

Syntax

// C#
public TGIS_Shape Simplify(
  double _tolerance,
  bool _returnnewobj
);
' VisualBasic
Public Function Simplify(
  ByVal _tolerance As Double,
  ByVal _returnnewobj As Boolean
) As TGIS_Shape
// Oxygene
public
  function Simplify(
    _tolerance : Double;
    _returnnewobj : Boolean
  ) : TGIS_Shape;

Parameters

Name Type Description
_tolerance double
Double
simplification tolerance
_returnnewobj bool
Boolean
if True, then result will be returned in a newly created object; if False, then self object will be returned

Result

Type Description
TGIS_Shape If _returnnewobj=True, then returns newly created shape. Otherwise returns modified or unmodified self object.

Remarks

Vertex elimination routine based on Douglas-Peucker algorithm. Only for arc or polygon shapes.

2022/11/16 01:35

Page Tools