Class: QgsSelectionContext
Encapsulates the context of a layer selection operation.
List of all members, including inherited members
Methods
scale
|
Returns the map scale at which the selection should occur. |
setScale
|
Sets the map scale at which the selection should occur. |
-
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)