Opened 8 years ago
Last modified 5 years ago
#6429 closed enhancement
gdaldem color-relief with new color selection mode: interval — at Version 1
Reported by: | dsogari | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | closed_because_of_github_migration |
Component: | default | Version: | svn-trunk |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
In gdaldem, there are currently three color interpolation modes: exact, nearest and linear. I propose a new mode which treats color entries as the limits of intervals. Then, the color associated with an entry applies to pixel values below or equal to the entry value, and above the preceding entry value.
The modified gdaldem_lib.cpp file is attached, as well as a patch file relative to trunk. Very few modifications were necessary and they do not affect current algorithm assumptions.
Update: there may be adaptations needed in GDALGenerateVRTColorRelief also, but I'm not sure of how to make these changes.
Change History (3)
by , 8 years ago
Attachment: | gdaldem_lib.cpp added |
---|
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
modified cpp file