User Tools

Site Tools


api:dk11:python:tatukgis.pdk.tgis_layervector.findfirst_tgis_extent_string

Table of Contents

TGIS_LayerVector.FindFirst(tatukgis.pdk.TGIS_Extent, str) method

DK11 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: tatukgis.pdk.TGIS_Extent
  _query: str
) -> tatukgis.pdk.TGIS_Shape: 

Parameters

Name Type Description
_extent tatukgis.pdk.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
tatukgis.pdk.TGIS_Shape Shape itself or nil.

References

2022/11/30 16:02

Page Tools