Class: QgsLocatorContext

Encapsulates the properties relating to the context of a locator search.

Attributes

targetExtent

Map extent to target in results.

targetExtentCrs

Coordinate reference system for the map extent variable.

transformContext

Coordinate transform context, to use whenever performing coordinate transformations inside a locator.

usingPrefix

Will be True if search is being conducted using a filter prefix.

class qgis.core.QgsLocatorContext[source]

Bases: object

targetExtent

Map extent to target in results. This can be used to prioritize searching for results close to the current map extent. The CRS for the extent is specified by targetExtentCrs.

targetExtentCrs

Coordinate reference system for the map extent variable.

See also

targetExtent()

transformContext

Coordinate transform context, to use whenever performing coordinate transformations inside a locator.

Added in version 3.16.

usingPrefix

Will be True if search is being conducted using a filter prefix.