Class: QgsLocatorContext¶
Encapsulates the properties relating to the context of a locator search.
Attributes
Map extent to target in results. |
|
Coordinate reference system for the map extent variable. |
|
Coordinate transform context, to use whenever performing coordinate transformations inside a locator. |
|
Will be |
- 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.
See also
- targetExtentCrs: QgsCoordinateReferenceSystem¶
Coordinate reference system for the map extent variable.
See also
- 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.