Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created June 15, 2011 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tmcw/1027412 to your computer and use it in GitHub Desktop.
Save tmcw/1027412 to your computer and use it in GitHub Desktop.
To generate
<RasterSymbolizer>
<RasterColorizer default-mode="linear" default-color="white" epsilon="0.001">
<stop color="blue" value = "-1000" />
<stop color="red" value = "-500" mode = "discrete" />
<stop color="yellow" value = "0" />
<stop value = "5" />
<stop color="red" value = "10" />
<stop color="green" value = "15" />
<stop color="black" value = "17" mode = "exact" />
<stop color="indigo" value = "100" />
</RasterColorizer>
</RasterSymbolizer>
#world {
rastercolorizer-default-mode: linear;
rastercolorizer-default-color: white;
rastercolorizer-epsilon: 0.001;
rastercolorizer-stops: {
-1000 {
color: blue;
}
-500 {
color: red;
mode: discrete;
}
0 {
color: yellow;
}
5 { }
10 {
color: red;
}
15 {
color: green;
}
17 {
color: black;
mode: exact;
}
100 {
color: indigo;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment