User Tools

Site Tools


api:dk11:python:tatukgis_pdk.tgis_shape.parts

Table of Contents

TGIS_Shape.Parts property

Raw internal storage of shape parts (SHP format compatible). Direct access to geometry part definitions for performance-critical operations.

Syntax

# Python
@property
def Parts(
  self
) -> Pointer: 

Value

Type
Pointer

Remarks

PURPOSE:Fast access to part boundaries for bulk geometry operations, spatial indexing, and format export (Shapefile, GeoDatabase). Avoids iteration overhead.

BEHAVIOR:Binary buffer containing part indices (start positions of each shape part). SHP-compatible format (4-byte integers, big-endian or host-order per platform). Managed/TBytes on .NET, raw Pointer on Delphi.

USAGE:Iterate parts:for i := 0 to PartCount-1 do PartStart := Parts[i];Export geometry:exportStream. WriteBytes(Parts, PartsSize);

CONSTRAINTS:Raw buffer (no bounds checking). Internal format (modification breaks geometry). Size in bytes via PartsSize. Lifetime: shape owns buffer, freed on destruction.

2026/06/13 13:50

Page Tools