User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_topology.fixshapeex_tgis_shape_boolean_boolean_boolean

Table of Contents

TGIS_Topology.FixShapeEx(TGIS_Shape, bool, bool, bool) method

DK11 for Java | tatukgis.jdk.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: Delphi | .NET | ActiveX | Python.

Syntax

// Java
public TGIS_Shape FixShapeEx(
  TGIS_Shape _shp,
  bool _returnnewobj,
  bool _forceFix,
  /* ref */ @ValueTypeParameter VarParameter<bool> _wasfixed
);
// Oxygene
public
  function FixShapeEx(
    _shp : TGIS_Shape;
    _returnnewobj : Boolean;
    _forceFix : Boolean;
    var _wasfixed : Boolean
  ) : TGIS_Shape;

Parameters

Name Type Description
_shp TGIS_Shape polygon, or arc to be fixed
_returnnewobj bool
Boolean
if True, the result is a newly created shape; if False, the self object is returned
_forceFix bool
Boolean
fix invalid geometry that does not have enough distinct points by adding missing points
_wasfixed bool
Boolean
indicates whether the shape was modified to fix errors

Result

Type Description
TGIS_Shape returns the computed shape

Remarks

See also FixShape method. To just validate a shape, use CheckShape method.

2023/09/01 01:53

Page Tools