QGIS/python/core/auto_additions/qgsrasterlabeling.py
Nyall Dawson 14f625f59f [API] Add framework for raster labeling
Allows raster pixels to be labeled with the value taken from a raster
band.

Labels are registered with the labeling engine, so participate in
label conflict resolution and overlap avoidance

Options include

- Selection of band to take values from
- Using QgsNumericFormat to customise the number format for the labels
- Uses text renderer, so supports buffers, shadows, etc
- Label priority
- Scale dependant visibility
- Optional pixel size dependent visibilty, ie show only when pixels are
> 4mm in size
- Z index control, overlap avoidance mode

Fixes #14408
2024-12-18 19:12:29 +10:00

13 lines
644 B
Python

# The following has been generated automatically from src/core/raster/qgsrasterlabeling.h
try:
QgsAbstractRasterLayerLabeling.defaultLabelingForLayer = staticmethod(QgsAbstractRasterLayerLabeling.defaultLabelingForLayer)
QgsAbstractRasterLayerLabeling.createFromElement = staticmethod(QgsAbstractRasterLayerLabeling.createFromElement)
QgsAbstractRasterLayerLabeling.__group__ = ['raster']
except (NameError, AttributeError):
pass
try:
QgsRasterLayerSimpleLabeling.create = staticmethod(QgsRasterLayerSimpleLabeling.create)
QgsRasterLayerSimpleLabeling.__group__ = ['raster']
except (NameError, AttributeError):
pass