#805 closed enhancement (fixed)
Templates or saveability/loadability in the color stretches (custom color maps)?
Reported by: | yury_t | Owned by: | ersts |
---|---|---|---|
Priority: | minor: annoyance | Milestone: | |
Component: | Rasters | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
Is there any way to make color stretches saveable/loadable? Possibly, the "Classify" parameters (palette?) saveable/loadable, too? Or would the Classify templates be feasible?
Right now doing the customized stretch is lots of work, the result isn't transferrable, and occasional hit of "Claassify" button resets everything in the stretch.
Attachments (1)
Change History (6)
comment:1 by , 16 years ago
Owner: | changed from | to
---|
comment:2 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 16 years ago
GDAL is able to create and interpret a colortable in an XML file, for any raster. Would it be possible to use this format instead of introducing QGIS's own one?
See the attached ArcInfo ASCII raster with an external colortable. QGIS renders the raster all nice in colors.
by , 16 years ago
Attachment: | slope.tar.bz2 added |
---|
example ArcInfo ASCII raster with an XML colortable file
comment:4 by , 16 years ago
I would prefer to not look at this as one format or another. I would rather see an enhancement request for QGIS being able import and export several different types of color maps/gradient formats - as there are some nice features in each but not all are 100% compatible - for example, class label support.
Currently QGIS will read/load any initial color map provided by GDAL for a band.
You can now save your color maps as a textfile. It is a very simple format and could be edited or created by hand if a user wants
The structure of the file is: # {COMMENTS} INTERPOLATION: {Method = INTERPOLATED, DISCRETE, EXACT} {PixelValue},{RedValue 0-255},{GreenValue 0-255},{Blue 0-255},{Alpha 0-255}, {Label} {PixelValue},{RedValue 0-255},{GreenValue 0-255},{Blue 0-255},{Alpha 0-255}, {Label} {PixelValue},{RedValue 0-255},{GreenValue 0-255},{Blue 0-255},{Alpha 0-255}, {Label} ...
Where values inside {} are numbers or strings.