User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_shape.create_tgis_shape_tgis_bytes_boolean_tgis_uid_tgis_layervector_tgis_dimensiontype

Table of Contents

TGIS_Shape.TGIS_Shape(TGIS_Shape, TGIS_Bytes, bool, long, TGIS_LayerVector, TGIS_DimensionType) constructor

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.

Syntax

// 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;

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 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.

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.

Example

This is a simple procedure showing how to add a shape to the layer.

2026/07/11 01:10

Page Tools