Class: QgsSelectionContext
Encapsulates the context of a layer selection operation.
-
class qgis.core.QgsSelectionContext[source]
Bases: object
-
scale(self) → float[source]
Returns the map scale at which the selection should occur.
The scale value indicates the scale denominator, e.g. 1000.0 for a
1:1000 map.
- Return type:
float
-
setScale(self, scale: float)[source]
Sets the map scale at which the selection should occur.
The scale value indicates the scale denominator, e.g. 1000.0 for a
1:1000 map.
- Parameters:
scale (float)