User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_shape.simplify_double_boolean

Table of Contents

TGIS_Shape.Simplify(Double; Boolean) method

DK11 for Delphi | GisLayerVector.TGIS_Shape.Simplify | Overloads | Constructors | Fields | Methods | Properties

Line generalization routine.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  function Simplify(
    const _tolerance : Double;
    const _returnnewobj : Boolean
  ) : TGIS_Shape; overload;
// C++ Builder
public:
  TGIS_Shape* Simplify(
    const double _tolerance,
    const bool _returnnewobj
  ) /* overload */;

Parameters

Name Type Description
_tolerance Double simplification tolerance
_returnnewobj 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.

2020/05/07 01:09

Page Tools