User Tools

Site Tools


api:dk11:python:tatukgis_pdk.tgis_shape.create_tgis_shape_pointer_boolean_tgis_uid_tgis_layervector_tgis_dimensiontype

Table of Contents

TGIS_Shape.__init__(TGIS_Shape, Pointer, bool, TGIS_Uid, TGIS_LayerVector, TGIS_DimensionType) constructor

Create a shape instance from an existing shape or from raw internal geometry data with an explicit dimension type.

Syntax

# Python
def __init__(
  self,
  _source: TGIS_Shape,
  _ptr: Pointer,
  _mapped: bool,
  _uid: TGIS_Uid,
  _layer: TGIS_LayerVector,
  _dim: TGIS_DimensionType
) -> None: 

Parameters

Name Type Description
_source TGIS_Shape Source shape to clone or use as a template. If assigned, _ptr, _mapped, _uid, and _layer are ignored.
_ptr Pointer Pointer or platform-specific buffer containing internal shape geometry data.
_mapped bool True if _ptr references memory-mapped data; False if it references regular in-memory data.
_uid TGIS_Uid Unique identifier assigned to the shape.
_layer TGIS_LayerVector Vector layer that owns or provides context for the shape.
_dim TGIS_DimensionType Coordinate dimension type for the shape geometry, such as 2D, 3D, or measured coordinates.

Remarks

For normal use,TGIS_LayerVector.CreateShape is recommended instead.

PURPOSE: Create a shape with explicit coordinate dimensionality for use with vector geometry stored in raw buffers or cloned from an existing shape.

BEHAVIOR: Initializes the shape and delegates setup toRecreate, including the requested dimension type.

CONSTRAINTS: Intended mainly for internal or advanced use. The supplied dimension type must match the actual geometry data.

2026/07/10 23:59

Page Tools