User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_layervector.findfirst_void

Table of Contents

ITGIS_LayerVector.FindFirst method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_LayerVector.FindFirst | Methods | Properties

Finds the first shape in layer. Will use RTree if available.

Available also on: Delphi | .NET | Java.

Syntax

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

Result

Type Description
ITGIS_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 desired shape.

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

References

2020/05/28 09:04