User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_shape.reverse_void

Table of Contents

TGIS_Shape.Reverse method

DK for .NET | TatukGIS.NDK.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: Delphi | Java | ActiveX | Python.

Syntax

// C#
public TGIS_Shape Reverse();
' VisualBasic
Public Function Reverse() As TGIS_Shape
// Oxygene
public
  function Reverse : TGIS_Shape;

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:54

Page Tools