<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial, sans-serif" size="3">
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><font size="2">Hello List,</font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2">Im trying to get a customized WMS result using SLD.</font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2">I tried several things with not fully satisfying results:</font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2">An sld parameter request:</font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2"><a href="http://gm21940:5000/cgi-bin/mapserv.exe?map=c:/project/legendamakenV2.map&amp;service=wms&amp;request=getmap&amp;version=1.1.1&amp;srs=epsg:28992&amp;format=png&amp;width=500&amp;height=600&amp;style=&amp;layers=KLLine&amp;bbox=165700,387800,165800,387900&amp;sld=http://gm21940:5000/intersect.sld"><font color="#0000FF"><u>http://gm21940:5000/cgi-bin/mapserv.exe?map=c:/project/legendamakenV2.map&amp;service=wms&amp;request=getmap&amp;version=1.1.1&amp;srs=epsg:28992&amp;format=png&amp;width=500&amp;height=600&amp;style=&amp;layers=KLLine&amp;bbox=165700,387800,165800,387900&amp;sld=http://gm21940:5000/intersect.sld</u></font></a>
</font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2">Where sld =</font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2"><i>&lt;StyledLayerDescriptor version='1 0 0'&gt;</i></font></div>
<div><font size="2"><i>&nbsp; &lt;NamedLayer&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp; &lt;Name&gt;KLLine&lt;/Name&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp; &lt;UserStyle&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Title&gt;KLLine&lt;/Title&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;FeatureTypeStyle&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Rule&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Filter&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Intersect&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PropertyName&gt;geometry&lt;/PropertyName&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Polygon srsName=&quot;EPSG:28992&quot;&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;outerBoundaryIs&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LinearRing&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;coordinates&gt;165607,387820 165651,387813 165672,387759 165598,387800 165607,387820&lt;/coordinates&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/LinearRing&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/outerBoundaryIs&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Polygon&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Intersect&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Filter&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Rule&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/FeatureTypeStyle&gt;</i></font></div>
<div><font size="2"><i>&nbsp;&nbsp;&nbsp; &lt;/UserStyle&gt;</i></font></div>
<div><font size="2"><i>&nbsp; &lt;/NamedLayer&gt;</i></font></div>
<div><font size="2"><i>&lt;/StyledLayerDescriptor&gt;</i></font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2">This works partially. The features are filtered with the intersect request, but the labels on the features are lost.</font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2">I tried to modify my SLD to get also labels on the features, now using the SLD.&nbsp; This doesn't work, no features are drawn at all.</font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2">Then i tried to set the filter= parameter in the WMS request. I've seen often that this works for WFS, but i tried the same on WMS and this didnt work.</font></div>
<div><font size="2">I tried:&nbsp;&nbsp; filter=<i>&lt;Filter&gt;&lt;Intersect&gt;&lt;PropertyName&gt;geometry&lt;/PropertyName&gt;&lt;Polygon srsName=&quot;EPSG:28992&quot;&gt;&lt;outerBoundaryIs&gt;&lt;LinearRing&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;coordinates&gt;165607,387820 165651,387813 165672,387759 165598,387800 165607,387820&lt;/coordinates&gt;&lt;/LinearRing&gt;&lt;/outerBoundaryIs&gt;&lt;/Polygon&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/Intersect&gt;&lt;/Filter&gt;</i></font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2">This is according to the FilterEncoding page on the mapserver wiki a valid request for WFS. Isn't this a valid request for WMS?</font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2">The wanted result is:&nbsp;&nbsp; an image with the requested extent, with the filtered intersection, using the mapserver styling. </font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2">The filtered intersection is custom, so an filter inside mapserver is not possible (or is this changable from url parameters?)</font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2">&nbsp;</font></div>
<div><font size="2">Greetings</font></div>
<div><font size="2"><br>

Gerben</font></div>
<div><font size="2">&nbsp;</font></div>
<div><br>

<font face="Verdana, sans-serif" size="1" color="#808080">&lt;&lt; Please read our E-mail Disclaimer at the Grontmij Corporate website &gt;&gt;<br>

</font></div>
</font>
</body>
</html>