User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_shape.difference_tgis_shape_boolean

Table of Contents

TGIS_Shape.Difference(TGIS_Shape; Boolean) method

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

Compute a difference with shape provided.

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

Syntax

// Delphi
public
  function Difference(
    const _shape : TGIS_Shape;
    const _returnnewobj : Boolean
  ) : TGIS_Shape; overload;
// C++ Builder
public:
  TGIS_Shape* Difference(
    TGIS_Shape* const _shape,
    const bool _returnnewobj
  ) /* overload */;

Parameters

Name Type Description
_shape TGIS_Shape shape to compute difference with
_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

Internally it uses Combine method of TGIS_Topology class. See Combine for similar example.

2022/11/16 01:22

Page Tools