Available also on: Delphi | ActiveX.
Create a shape instance from an existing shape or from raw internal geometry data with an explicit dimension type.
# Python def __init__( self, _source: TGIS_Shape, _ptr: Pointer, _mapped: bool, _uid: TGIS_Uid, _layer: TGIS_LayerVector, _dim: TGIS_DimensionType ) -> None:
| 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. |
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.