User Tools

Site Tools


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

TGIS_LayerVector.GetShape(long, int) method

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

Get shape by unique identifier.

Available also on: Delphi | Java | ActiveX.

Syntax

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

Parameters

Name Type Description
_uid long
TGIS_Uid
identifier /same as current record for SHP file/
_cursor int
Integer
cursor allocated by cursorOpen()

Result

Type Description
TGIS_Shape Shape itself or nil/

Remarks

Use this method to get a shape having unique id. We can locate a shape by id, change or read its attributes, etc. See example.

When using this operation, never call any function which uses FindFirst..FindNext (any function which iterates through the shapes using it - so never use inside an operation like Locate, PaintScope, etc.).

References

2018/02/17 00:26