User Tools

Site Tools


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

Table of Contents

TGIS_Shape.TGIS_Shape(TGIS_DimensionType) constructor

DK for .NET | TatukGIS.NDK.TGIS_Shape.Create | Overloads | Constructors | Fields | Methods | Properties

Create an empty shape instance with the specified coordinate dimension type.

Available also on: Delphi | Java | ActiveX | Python.

Syntax

// C#
public virtual TGIS_Shape(
  TGIS_DimensionType _dim
);
' VisualBasic
Public Overridable Sub New(
  ByVal _dim As TGIS_DimensionType
)
// Oxygene
public
  constructor (
    _dim : TGIS_DimensionType
  ); virtual;

Parameters

Name Type Description
_dim TGIS_DimensionType Coordinate dimension type for the shape geometry, such as XY, XYZ, XYM, or XYZM.

Remarks

For normal use,TGIS_LayerVector.CreateShape is recommended instead.

PURPOSE: Initialize a new empty shape object with explicit geometry dimensionality.

BEHAVIOR: Creates the shape with default state, no source shape, no geometry buffer, no layer, and the requested dimension type.

CONSTRAINTS: This constructor is primarily intended for internal or advanced use. The selected dimension type should match the intended geometry representation.

Example

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

2026/09/20 23:54

Page Tools