User Tools

Site Tools


api:dk11:python:tatukgis_pdk.tgis_layervector.findfirst_tgis_extent_string

Table of Contents

TGIS_LayerVector.FindFirst(TGIS_Extent, str) method

DK for Python | tatukgis_pdk.TGIS_LayerVector.FindFirst | Overloads | Constructors | Methods | Properties | Events

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

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

Syntax

# Python
def FindFirst(
  self,
  _extent: TGIS_Extent,
  _query: str
) -> TGIS_Shape: 

Parameters

Name Type Description
_extent TGIS_Extent extent of items to be found; the layer has been attached to the Viewer then expected _extent units are in a Viewer coordinate space; otherwise expected _extent units are in a Layer coordinate space
_query str query which must be matched by item; closely mimics SQL WHERE clause; for examples you can use 'AGE >= 18'; empty (default) means that no items will match.

Result

Type Description
TGIS_Shape Shape itself or nil.

References

2025/01/31 01:22

Page Tools