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 dsogari)

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 dsogari, 8 years ago

Attachment: gdaldem_lib.cpp added

modified cpp file

by dsogari, 8 years ago

Attachment: gdaldem_lib.patch added

patch file

comment:1 by dsogari, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.