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
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