Default Raster Visualization
Issue #166
closed
The default rendering of raster layers should consider the following options:
#bands | byte | int | float |
---|---|---|---|
1 | DN | 2% GC | 2% GC |
2 | DN | 2% GC | 2% GC |
>= 3 | DN | 2% RGB | 2% RGB |
2% RGB = QgsMultiBandColorRenderer with default or, if possible, True Color band combination from 2% to 98 % (band-wise)
2% GC = QgsSingleBandGrayRenderer grey color gradient from 2% to 98%
DN = direct use of digital number as RGB color values
QgsPalettedRasterRenderer in case of ClassificationScheme
Comments (8)
-
-
-
assigned issue to
-
assigned issue to
-
reporter The table is needed to support documentation of EnMAP-Box behaviour for none-programmers. I updated it with your logic.
-
reporter - edited description
-
reporter - edited description
-
following the given if-elif-else logic, it is more like this
#bands byte int / float 1 0% GC 2% GC 3 DN 2% RGB else 2% RGB 2% RGB -
reporter - edited description
-
reporter - changed status to closed
added layerproperties.py defaultRasterRenderer() closes Issue
#166→ <<cset 7b7c8dccca0c>>
- Log in to comment
we do not need the table, use this logic: