mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
In this mode, the user can specify a QGIS expression for the lower and upper value corresponding to raster bands, using variables like @band, @band_name and @band_description. E.g @band * 100 Can be used when each band represents a 100 m vertical slice of data. The expression will be evaluated when required to determine the actual elevation range corresponding to each band. This differs from the existing "Fixed Elevation Range Per Band" mode in that "Fixed Elevation Range Per Band" requires users to manually enter an elevation for each band separately, and these values are then treated as constants. That mode works best for rasters with non-regular steps in the band elevation values, while this new mode is better for regular band elevation steps
17 lines
1.8 KiB
Python
17 lines
1.8 KiB
Python
# The following has been generated automatically from src/core/qgsmaplayerelevationproperties.h
|
|
# monkey patching scoped based enum
|
|
QgsMapLayerElevationProperties.ZOffset = QgsMapLayerElevationProperties.Property.ZOffset
|
|
QgsMapLayerElevationProperties.ZOffset.is_monkey_patched = True
|
|
QgsMapLayerElevationProperties.ZOffset.__doc__ = ""
|
|
QgsMapLayerElevationProperties.ExtrusionHeight = QgsMapLayerElevationProperties.Property.ExtrusionHeight
|
|
QgsMapLayerElevationProperties.ExtrusionHeight.is_monkey_patched = True
|
|
QgsMapLayerElevationProperties.ExtrusionHeight.__doc__ = "Extrusion height"
|
|
QgsMapLayerElevationProperties.RasterPerBandLowerElevation = QgsMapLayerElevationProperties.Property.RasterPerBandLowerElevation
|
|
QgsMapLayerElevationProperties.RasterPerBandLowerElevation.is_monkey_patched = True
|
|
QgsMapLayerElevationProperties.RasterPerBandLowerElevation.__doc__ = "Lower elevation for each raster band (since QGIS 3.38)"
|
|
QgsMapLayerElevationProperties.RasterPerBandUpperElevation = QgsMapLayerElevationProperties.Property.RasterPerBandUpperElevation
|
|
QgsMapLayerElevationProperties.RasterPerBandUpperElevation.is_monkey_patched = True
|
|
QgsMapLayerElevationProperties.RasterPerBandUpperElevation.__doc__ = "Upper elevation for each raster band (since QGIS 3.38)"
|
|
QgsMapLayerElevationProperties.Property.__doc__ = "Data definable properties.\n\n.. versionadded:: 3.26\n\n" + '* ``ZOffset``: ' + QgsMapLayerElevationProperties.Property.ZOffset.__doc__ + '\n' + '* ``ExtrusionHeight``: ' + QgsMapLayerElevationProperties.Property.ExtrusionHeight.__doc__ + '\n' + '* ``RasterPerBandLowerElevation``: ' + QgsMapLayerElevationProperties.Property.RasterPerBandLowerElevation.__doc__ + '\n' + '* ``RasterPerBandUpperElevation``: ' + QgsMapLayerElevationProperties.Property.RasterPerBandUpperElevation.__doc__
|
|
# --
|