User Tools

Site Tools


api:dk11:java:tatukgis.jdk.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

DK11 for Java | tatukgis.jdk.TGIS_Shape.Create | Overloads | Constructors | Fields | Methods | Properties

Create a shape instance.

Available also on: .NET.

Syntax

// Java
public TGIS_Shape(
  TGIS_Shape _source,
  TGIS_Bytes _ptr,
  bool _mapped,
  long _uid,
  TGIS_LayerVector _layer,
  TGIS_DimensionType _dim
);
// 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 If not nil then base shape will be based on this shape. Otherwise _prt, _mapped, _uid and _layer will be used.
_ptr TGIS_Bytes Address in memory where shape data exists.
_mapped bool
Boolean
Id _ptr from mapped file or from memory.
_uid long
TGIS_Uid
Unique identity for shape.
_layer TGIS_LayerVector Reference to the layer on which shape will be created.
_dim TGIS_DimensionType Dimension

Remarks

For usage TGIS_LayerVector.CreateShape method is recommended instead.

Use this method to create a shape. Internally it calls Recreate method.

Example

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

2020/05/07 01:14

Page Tools