Class: QgsMapUnitScale¶
-
class
qgis.core.
QgsMapUnitScale
(minScale: float = 0, maxScale: float = 0)¶ Bases:
sip.wrapper
Constructor for QgsMapUnitScale
- Parameters
minScale – minimum allowed scale, or 0.0 if no minimum scale set
maxScale – maximum allowed scale, or 0.0 if no maximum scale set The scale values indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
QgsMapUnitScale(QgsMapUnitScale)
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.
Enums
Methods
Computes a map units per pixel scaling factor, respecting the minimum and maximum scales set for the object.
Signals
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
¶