User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_layervector.getshape_tgis_uid

TGIS_LayerVector.GetShape(long) method

DK11 for .NET | TatukGIS.NDK.TGIS_LayerVector.GetShape | Overloads | Constructors | Fields | Methods | Properties | Events

Gets a shape by its unique identifier on default cursor (0).

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

Syntax

// C#
public virtual TGIS_Shape GetShape(
  long _uid
);
' VisualBasic
Public Overridable Function GetShape(
  ByVal _uid As Long
) As TGIS_Shape
// Oxygene
public
  function GetShape(
    _uid : TGIS_Uid
  ) : TGIS_Shape; virtual;

Parameters

Name Type Description
_uid long
TGIS_Uid
identifier /same as current record for SHP file/

Result

Type Description
TGIS_Shape Shape itself or nil.

Remarks

The GetShape returns a weak reference to an internal shape of the current cursor, therefore is not permanent. Another call of GetShape will change this reference. To get a strong reference, call MakeEditable() or CreateCopy() on a shape.

References

2022/11/16 01:34

Page Tools