DK for .NET | TatukGIS.NDK.TGIS_Shape.Create | Overloads | Constructors | Fields | Methods | Properties
Create a shape instance from an existing shape or from raw internal geometry data with an explicit dimension type.
Available also on: Java.
// C# public virtual TGIS_Shape( TGIS_Shape _source, TGIS_Bytes _ptr, bool _mapped, long _uid, TGIS_LayerVector _layer, TGIS_DimensionType _dim );
' VisualBasic Public Overridable Sub New( ByVal _source As TGIS_Shape, ByVal _ptr As TGIS_Bytes, ByVal _mapped As Boolean, ByVal _uid As Long, ByVal _layer As TGIS_LayerVector, ByVal _dim As TGIS_DimensionType )
// Oxygene public constructor ( _source : TGIS_Shape; _ptr : TGIS_Bytes; _mapped : Boolean; _uid : TGIS_Uid; _layer : TGIS_LayerVector; _dim : TGIS_DimensionType ); virtual;
| 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 | TGIS_Bytes | Pointer or platform-specific buffer containing internal shape geometry data. |
| _mapped | bool Boolean | True if _ptr references memory-mapped data; False if it references regular in-memory data. |
| _uid | long 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.
This is a simple procedure showing how to add a shape to the layer.