User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_shape.reverse_void

Table of Contents



TGIS_Shape.Reverse method

DK for Delphi | GisLayerVector.TGIS_Shape.Reverse | Overloads | Constructors | Fields | Methods | Properties

Reverses the order of parts and points in the shape and returns the resulting shape.

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

Syntax

// Delphi
public
  function Reverse : TGIS_Shape; overload;
// C++ Builder
public:
  TGIS_Shape* Reverse(void) /* overload */;

Result

Type Description
TGIS_Shape A newly created shape with reversed part and point order, or nil for TGIS_ShapePoint.

Remarks

PURPOSE: Reorders geometry for editing, normalization, and geometry transformation workflows.

BEHAVIOR: Calls Reverse(True), creating a new shape whose parts are processed in reverse order and whose points within each part are also reversed.

USAGE: Create a reversed copy of a line or polygon.

reversed_shape = shape.Reverse()
if reversed_shape then
  process_geometry(reversed_shape)

CONSTRAINTS: Returns nil for TGIS_ShapePoint.

2026/09/20 23:48

Page Tools