Make GeoServer a full SLD-WMS


It would be great to implement a fully functional SLD-WMS, that is a WMS that fully implements the SLD specification, with the GetStyle, PutStyle, DescribeLayer, and GetLegendGraphic operations, along with the appropriate WMS Capabilities document enhancements. Also allow users to pass in the SLD parameter instead of a named style. This should not be all that hard, as GeoTools already has SLD parsers and renderers using them. Indeed GeoServer already uses SLD to configure styles, this is just the logical web services extension. This will require reworking the style configuration a bit, but it's a much needed reworking.




April 10, 2015, 4:15 PM

CodeHaus Comment From: groldan - Time: Fri, 11 Mar 2005 12:00:48 -0600
<p>Just added SLD and SLD_BODY support to GetMap, still need to advertise it in capabilities.

Basically it is working both in literal and library mode, so please test it and bug me for any problem</p>

<p>Be aware that the SLD parser being used is a bit more smart than previously, it now supports NamedLayer and NamedStyles,

and geoserver properly manages them.</p>

<p>For a more descriptive information about how it works take a look at the javadoc in GetMapKvpReader.</p>

<p>An be aware that you have to correctly specify the layer name in NamedLayer/Name and UserLayer/Name if you want geoserver recognizing your style.</p>

<p>Quick ref:

wms/GetMap?....&amp;LAYERS=...&amp;SLD=<a href="http://somesite/myStyle.sld" class="external-link" rel="nofollow">http://somesite/myStyle.sld</a> --&gt; remote library mode, paint the layers from the LAYERS parameter with the styling defined in the remote SLD document, or the layer's default style if the doc contains no styling for a layer</p>

<p>wms/GetMap?....&amp;LAYERS=...&amp;SLD_BODY=<a href="http://somesite/myStyle.sld" class="external-link" rel="nofollow">http://somesite/myStyle.sld</a> --&gt; inline library mode, same as above but providing the document inline (properly encoded for HTTP travel)</p>

<p>wms/GetMap?....&amp;SLD=<a href="http://somesite/myStyle.sld" class="external-link" rel="nofollow">http://somesite/myStyle.sld</a> --&gt; remote literal mode, paint exactly the layers defined in the remote SLD document, styled as the document says</p>

<p>wms/GetMap?....&amp;SLD_BODY=<a href="http://somesite/myStyle.sld" class="external-link" rel="nofollow">http://somesite/myStyle.sld</a> --&gt; inline literal mode, same as above but providing the document inline (properly encoded for HTTP travel)</p>

<p>wait for comments, bug reports</p>

April 10, 2015, 4:15 PM

CodeHaus Comment From: cholmes - Time: Fri, 11 Mar 2005 12:45:59 -0600
<p>Great work Gabriel. This sounds similar to: <a href="" class="external-link" rel="nofollow"></a> If it is then go ahead and close it. And could you also check: <a href="" class="external-link" rel="nofollow"></a> ? Basically see if spatial filters are working, and fix the filter dom parser to handle them, as that's what the sld parser uses.</p>

April 10, 2015, 4:15 PM

CodeHaus Comment From: aaime - Time: Thu, 29 Mar 2007 02:06:01 -0500
<p>These issue has been in resolved state for at least one month (quite a bit, a lot more than one month). Batch transitioning them to closed state</p>








Fix versions

Affects versions