DK11 for .NET | TatukGIS.NDK.TGIS_LayerVector.GetShape | Overloads | Constructors | Fields | Methods | Properties | Events
Get shape by unique identifier.
// 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;
Name | Type | Description |
---|---|---|
_uid | long TGIS_Uid | identifier /same as current record for SHP file/ |
_cursor | int Integer | cursor allocated by cursorOpen() |
Type | Description |
---|---|
TGIS_Shape | Shape itself or nil/ |
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.).