Opened 8 years ago
Closed 5 years ago
#6429 closed enhancement (wontfix)
gdaldem color-relief with new color selection mode: interval
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.
Attachments (2)
Change History (6)
by , 8 years ago
Attachment: | gdaldem_lib.cpp added |
---|
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
comment:3 by , 8 years ago
Milestone: | 2.0.3 |
---|
comment:4 by , 5 years ago
Milestone: | → closed_because_of_github_migration |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.
modified cpp file