Opened 8 years ago

Last modified 5 years ago

#6429 closed enhancement

gdaldem color-relief with new color selection mode: interval — at Initial Version

Reported by: dsogari Owned by: warmerdam
Priority: normal Milestone: closed_because_of_github_migration
Component: default Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

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.

Change History (2)

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

Note: See TracTickets for help on using tickets.