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: QgsRectangle

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: QgsCoordinateReferenceSystem

Coordinate reference system for the map extent variable.

See also

targetExtent()

transformContext: QgsCoordinateTransformContext

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

Added in version 3.16.

usingPrefix: bool

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