User Tools

Site Tools


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

Table of Contents

TGIS_Shape.Recreate(TGIS_Shape, TGIS_Bytes, bool, long, TGIS_LayerVector) method

DK11 for .NET | TatukGIS.NDK.TGIS_Shape.Recreate | Overloads | Constructors | Fields | Methods | Properties

Recreate an instance.

Available also on: Java.

Syntax

// C#
public void Recreate(
  TGIS_Shape _source,
  TGIS_Bytes _ptr,
  bool _mapped,
  long _uid,
  TGIS_LayerVector _layer
);
' VisualBasic
Public Sub Recreate(
  ByVal _source As TGIS_Shape,
  ByVal _ptr As TGIS_Bytes,
  ByVal _mapped As Boolean,
  ByVal _uid As Long,
  ByVal _layer As TGIS_LayerVector
)
// Oxygene
public
  procedure Recreate(
    _source : TGIS_Shape;
    _ptr : TGIS_Bytes;
    _mapped : Boolean;
    _uid : TGIS_Uid;
    _layer : TGIS_LayerVector
  ); virtual;

Parameters

Name Type Description
_source TGIS_Shape If not nil, then the base shape will be based on this shape. Otherwise _ptr, _uid and _layer will be used.
_ptr TGIS_Bytes Address in memory where shape data exists.
_mapped bool
Boolean
True if pointer is mapped to the file
_uid long
TGIS_Uid
Unique identifier for shape.
_layer TGIS_LayerVector Reference to the layer on which the shape will be created.

Remarks

Use this method to recreate an instance with new basic values. Needed for faster FindNext in mapped file shapes. In such a situation shapes will be "reused" in FindNext loop. See Create method for details and example.

2020/05/07 01:18

Page Tools