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.
# Python def FindFirst( self, _extent: TGIS_Extent, _query: str ) -> TGIS_Shape:
| 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. |
| Type | Description |
|---|---|
| TGIS_Shape | Shape itself or nil. |