Hello,
I have made a SLD for a categorical raster that will allow me to turn each
pixel value on an off. The initial style has opacity set to '0' and it
works fine when using the previewing option through geoserver. We can take
url of the map add on &env=lcwater:1 and the resulting image looks fine. It
only displays water for the entire globe. However, we have tried
unsuccessfully to properly call the wms into the mapping application
(leaflet & openlayers). The resulting map seems to properly display the
dynamic sld in the center of the map? By that I mean that the base map
image is seen, and the overlay exists. However, as the user pans or zooms
they will eventually find an area where the SLD has not worked. In this
case we have a global map and around the +/-180 range the users raster
becomes visible. If you zoom in the image keeps updating an the image
dissipates, but does not disappear completely. You always see something at
+/-180
My thoughts are that something strange is happening in the pyramids?
Perhaps the SLD is erroring when it can not find the values at different
pyramid levels. The raster and overviews being processes are using postgis.
Perhaps I am going about this the wrong way, is there a better way to
achieve this idea? Maybe through the REST API?
This is a sample of the symbolizer I am using. There are 22 categories
<RasterSymbolizer>
<ColorMap type="values">
<ColorMapEntry color="#FFFFFF" quantity="0" opacity
="${env('lcprimveg',0)}" />
<ColorMapEntry color="#00CC00" quantity="1" opacity
="${env('lcbrdevgrn',0)}"/>
<ColorMapEntry color="#00CC00" quantity="2" opacity
="${env('lcdecidcl',0)}" />
<ColorMapEntry color="#80E680" quantity="3" opacity
="${env('lcdecidop',0)}" />
<ColorMapEntry color="#00CC00" quantity="4" opacity
="${env('lcndlevgrn',0)}"/>
<ColorMapEntry color="#00CC00" quantity="5" opacity
="${env('lcndldecid',0)}" />
<ColorMapEntry color="#00CC00" quantity="6" opacity
="${env('lcmxlftree',0)}" />
<ColorMapEntry color="#00FF99" quantity="7" opacity
="${env('lcaqtrfrsh',0)}" />
<ColorMapEntry color="#A352CC" quantity="8" opacity
="${env('lcaqtrsali',0)}" />
Here is the example of the call
var lcbrdevgrn = new L.TileLayer.WMS(url,{layers: 'Shoumith:glc_dynamic',
transparent: true, styles: 'glc_dynamic', lcbrdevgrn: 1, format:
"image/png"});
--
David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users