User Tools

Site Tools


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.


# Python
def FindFirst(
  _extent: tatukgis.pdk.TGIS_Extent
  _query: str
) -> tatukgis.pdk.TGIS_Shape: 


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.


Type Description
tatukgis.pdk.TGIS_Shape Shape itself or nil.


2022/11/30 16:02

Page Tools