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 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.

Attachments (2)

gdaldem_lib.cpp (107.6 KB ) - added by dsogari 8 years ago.
modified cpp file
gdaldem_lib.patch (5.9 KB ) - added by dsogari 8 years ago.
patch file

Download all attachments as: .zip

Change History (6)

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)

comment:2 by Even Rouault, 8 years ago

Removing target milestone as it corresponds to a now closed milestone.

comment:3 by Even Rouault, 8 years ago

Milestone: 2.0.3

comment:4 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.