Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

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

slope.tar.bz2 (20.8 KB ) - added by msieczka 16 years ago.
example ArcInfo ASCII raster with an XML colortable file

Download all attachments as: .zip

Change History (6)

comment:1 by ersts, 16 years ago

Owner: changed from nobody to ersts

comment:2 by ersts, 16 years ago

Resolution: fixed
Status: newclosed

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.

comment:3 by msieczka, 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 msieczka, 16 years ago

Attachment: slope.tar.bz2 added

example ArcInfo ASCII raster with an XML colortable file

comment:4 by ersts, 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.

comment:5 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.