User Tools

Site Tools


api:dk11:delphi:gistopology.tgis_topology.fixshapeex_tgis_shape_boolean_boolean

Table of Contents

TGIS_Topology.FixShapeEx(TGIS_Shape; Boolean; Boolean) method

DK11 for Delphi | GisTopology.TGIS_Topology.FixShapeEx | Overloads | Constructors | Methods | Properties | Events

Computes a shape without self-crossings (loops) for arcs and polygons, and with a proper winding for polygon (clockwise, and opposite for holes).

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

Syntax

// Delphi
public
  function FixShapeEx(
    const _shp : TGIS_Shape;
    const _returnnewobj : Boolean;
    var _wasfixed : Boolean
  ) : TGIS_Shape; overload;
// C++ Builder
public:
  TGIS_Shape* FixShapeEx(
    TGIS_Shape* const _shp,
    const bool _returnnewobj,
    bool &_wasfixed
  ) /* overload */;

Parameters

Name Type Description
_shp TGIS_Shape polygon, or arc to be fixed
_returnnewobj Boolean if True, the result is a newly created shape; if False, the self object is returned
_wasfixed Boolean indicates whether the shape was modified to fix errors

Result

Type Description
TGIS_Shape returns the computed shape

Remarks

The result depends on the ForceShapeFixing property. See also FixShape method. To just validate a shape, use CheckShape method.

2023/09/01 01:27

Page Tools