Subgroup: Map
Class: QgsMapUnitScale¶
-
class
qgis.core.
QgsMapUnitScale
¶ Bases:
sip.wrapper
Struct for storing maximum and minimum scales for measurements in map units
For measurements in map units, a minimum and a maximum scale can be defined. Outside this range, the measurements aren’t scaled anymore proportionally to the map scale.
Methods
computeMapUnitsPerPixel
Computes a map units per pixel scaling factor, respecting the minimum and maximum scales set for the object. Attributes
-
computeMapUnitsPerPixel
(self, c: QgsRenderContext) → float¶ Computes a map units per pixel scaling factor, respecting the minimum and maximum scales set for the object.
Parameters: c – render context Returns: map units per pixel, limited between minimum and maximum scales
-
maxScale
¶
-
maxSizeMM
¶
-
maxSizeMMEnabled
¶
-
minScale
¶
-
minSizeMM
¶
-
minSizeMMEnabled
¶
-