Skip to content

Instantly share code, notes, and snippets.

@rcoup
Forked from tmcw/rastersample.mss
Created October 3, 2011 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcoup/1260522 to your computer and use it in GitHub Desktop.
Save rcoup/1260522 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[band=1] {
rastercolorizer-mode: linear;
rastercolorizer-color: white;
rastercolorizer-epsilon: 0.001;
::stop[-1000] {
color: blue;
}
::stop[-500] {
color: red;
mode: discrete;
}
::stop[0] {
color: yellow;
}
::stop[5] { }
::stop[10] {
color: red;
}
::stop[15] {
color: green;
}
::stop[17] {
color: black;
mode: exact;
}
::stop[100] {
color: indigo;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment