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.
# Python def FindFirst( self _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. |