User Tools

Site Tools


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

Table of Contents

TGIS_LayerVector.FindFirst method

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

Find first occurrence of an item which meets extent and query. Will use RTree if available.

Available also on: Delphi | Java | ActiveX.

Syntax

// C#
public TGIS_Shape FindFirst();
' VisualBasic
Public Function FindFirst() As TGIS_Shape
// Oxygene
public
  function FindFirst : TGIS_Shape; virtual;

Result

Type Description
TGIS_Shape Shape itself or nil.

Remarks

See: FindNext

Use this method to find to the first shape in the layer matching given criteria. Using _query param we can narrow the result of the shape searching down to the minimum. This should speed up our process of locating a desirable shape.

To locate a shape, simply choose an existing layer and use FindFirst method of with a proper extent and SQL query as a WHERE clause.

References

2018/02/17 00:26