[Geoserver-users] CoverageStore SLD's - tips and tricks?

Hi Everyone,

I’m starting to work with getting classified rasters in Arc/Info ASCII Grid format to display in Openlayers as a Geoserver CoverageStore. So far I’m playing with the demo sets and modifying the raster.sld to see if I can figure out how things work. I found a bit of documentation on the rastersymbolizer syntax at http://udig.refractions.net/files/docs/api-geotools/org/geotools/styling/RasterSymbolizer.html, and am using it as a guide.

Using this, it seems that if I want to change a color for a particular raster value, the
lines in the SLD file is my friend. So just for grins, I chopped a bunch of the lines out of the raster.sld to see what the effect was on the sf:dem in OpenLayers. To my surprise, there is no effect at all.

Below are the color map entries that are left on the raster.sld, and I would think I’d have almost nothing left in the Openlayers output.

Is my thinking correct about how styling is changed on these types of layers? I’m using GeoServer 1.6.0-RC1.

Thanks,

Roger

Roger.Andre@anonymised.com ha scritto:

Hi Everyone,

I'm starting to work with getting classified rasters in Arc/Info ASCII Grid format to display in Openlayers as a Geoserver CoverageStore. So far I'm playing with the demo sets and modifying the raster.sld to see if I can figure out how things work. I found a bit of documentation on the rastersymbolizer syntax at http://udig.refractions.net/files/docs/api-geotools/org/geotools/styling/RasterSymbolizer.html, and am using it as a guide.

Using this, it seems that if I want to change a color for a particular raster value, the
<ColorMapEntry> lines in the SLD file is my friend. So just for grins, I chopped a bunch of the <ColorMapEntry> lines out of the raster.sld to see what the effect was on the sf:dem in OpenLayers. To my surprise, there is no effect at all.

Below are the color map entries that are left on the raster.sld, and I would think I'd have almost nothing left in the Openlayers output.
<ColorMapEntry color="#000000" quantity="-500" label="nodata" opacity="0.0"/>

<ColorMapEntry color="#00ff00" quantity="-500" label="values"/>

<ColorMapEntry color="#00fa00" quantity="-417" label="values"/>

Is my thinking correct about how styling is changed on these types of layers? I'm using GeoServer 1.6.0-RC1.

Roger,
we noticed that in 1.6.0 the raster symbolizer support was totally
broken and we even removed the demos because of it.
I guess you'll have to wait for GeoServer 1.6.2 to be released
in order to play with it again (no less than one month?).
Anyways, if you're interested, you can subscribe yourself
as a watcher of http://jira.codehaus.org/browse/GEOS-1733,
this way you'll be nofified as soon as the work lands on
1.6.x and you'll be able to try it out right away
using a nightly.

Cheers
Andrea