I started to use QGIS for personal mapping as a hobby (specially for planning bike routes), and I notice there are more than one way to use color ramps.
- There are styles, which can be saved and loaded, and may contain color ramps (that is, they aren't the color ramps themselves); When you save a style, the color ramp is saved as a
colorrampshader
tag in a.qml
file; - There are the color ramps themselves, which consist of a table of value, RGBA color (editable via color picker), and label. This, when saved, generate a plain CSV file with
.txt
extension. An important difference seem to be the mapping of each color to a defined value (for example, to a given elevation) as opposed to a percentage from bottom to top; - There are
xml
files that apparently can be imported via Style Manager as described in this blog post.
What I would like to know is: what is the preferred/canonical way to store a color ramp? Where can I find the specifications about colorramp
and colorrampshader
in their respective xml namespaces?
And where does QGIS store the predefined color ramp files?