Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates or saveability/loadability in the color stretches (custom color maps)? #10864

Closed
qgib opened this issue Nov 13, 2007 · 4 comments
Closed
Labels
Feature Request Rasters Related to general raster layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Nov 13, 2007

Author Name: yury_t - (yury_t -)
Original Redmine Issue: 805

Redmine category:rasters
Assignee: ersts -


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.


@qgib
Copy link
Contributor Author

qgib commented Aug 25, 2008

Author Name: ersts - (ersts -)


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:

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


  • resolution was changed from to fixed
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Aug 25, 2008

Author Name: Maciej Sieczka - (Maciej Sieczka -)


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.

@qgib
Copy link
Contributor Author

qgib commented Sep 12, 2008

Author Name: ersts - (ersts -)


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.

@qgib
Copy link
Contributor Author

qgib commented Aug 21, 2009

Author Name: Anónimo (Anónimo)


Milestone Version 1.0.0 deleted

@qgib qgib added Feature Request Rasters Related to general raster layer handling (not specific data formats) labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Rasters Related to general raster layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant