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, its geometry, shape type, dimension, flags, tags, optional parameters, and mapped fields are copied. |
| _ptr | TGIS_Bytes | Pointer or platform-specific buffer containing internal shape geometry data. When provided, geometry is prepared from this buffer. |
| _mapped | bool Boolean | True if the supplied or copied geometry should be treated as mapped; otherwise False. |
| _uid | long TGIS_Uid | Unique identifier assigned to the shape. A nonzero value overrides the identifier copied from _source. |
| _layer | TGIS_LayerVector | Vector layer associated with the shape. If assigned, it overrides the layer copied from _source. |
| _dim | TGIS_DimensionType | Coordinate dimension type used when _source is not provided, such as XY, XYZ, XYM, or XYZM. |
TGIS_LayerVector.CreateShape is recommended instead.PURPOSE: Create a shape with explicit coordinate dimensionality for geometry cloned from another shape or prepared from a raw buffer.
BEHAVIOR: Initializes default shape state, then recreates the instance from the provided source or buffer. When a source shape is assigned, copied values take precedence over _mapped and _dim, while nonzero _uid and assigned _layer still override the copied identifier and layer.
CONSTRAINTS: Intended mainly for internal or advanced use. The supplied buffer and dimension must match the actual geometry representation.
This is a simple procedure showing how to add a shape to the layer.