<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> </div>
<div> </div>
<div><font size="2">Hello List,</font></div>
<div><font size="2"> </font></div>
<div><font size="2">Im trying to get a customized WMS result using SLD.</font></div>
<div><font size="2"> </font></div>
<div><font size="2">I tried several things with not fully satisfying results:</font></div>
<div><font size="2"> </font></div>
<div><font size="2">An sld parameter request:</font></div>
<div><font size="2"> </font></div>
<div><font size="2"><a href="http://gm21940:5000/cgi-bin/mapserv.exe?map=c:/project/legendamakenV2.map&service=wms&request=getmap&version=1.1.1&srs=epsg:28992&format=png&width=500&height=600&style=&layers=KLLine&bbox=165700,387800,165800,387900&sld=http://gm21940:5000/intersect.sld"><font color="#0000FF"><u>http://gm21940:5000/cgi-bin/mapserv.exe?map=c:/project/legendamakenV2.map&service=wms&request=getmap&version=1.1.1&srs=epsg:28992&format=png&width=500&height=600&style=&layers=KLLine&bbox=165700,387800,165800,387900&sld=http://gm21940:5000/intersect.sld</u></font></a>
</font></div>
<div><font size="2"> </font></div>
<div><font size="2">Where sld =</font></div>
<div><font size="2"> </font></div>
<div><font size="2"><i><StyledLayerDescriptor version='1 0 0'></i></font></div>
<div><font size="2"><i> <NamedLayer></i></font></div>
<div><font size="2"><i> <Name>KLLine</Name></i></font></div>
<div><font size="2"><i> <UserStyle></i></font></div>
<div><font size="2"><i> <Title>KLLine</Title></i></font></div>
<div><font size="2"><i> <FeatureTypeStyle></i></font></div>
<div><font size="2"><i> <Rule></i></font></div>
<div><font size="2"><i> <Filter></i></font></div>
<div><font size="2"><i> <Intersect></i></font></div>
<div><font size="2"><i> <PropertyName>geometry</PropertyName></i></font></div>
<div><font size="2"><i> <Polygon srsName="EPSG:28992"></i></font></div>
<div><font size="2"><i> <outerBoundaryIs></i></font></div>
<div><font size="2"><i> <LinearRing></i></font></div>
<div><font size="2"><i> <coordinates>165607,387820 165651,387813 165672,387759 165598,387800 165607,387820</coordinates></i></font></div>
<div><font size="2"><i> </LinearRing></i></font></div>
<div><font size="2"><i> </outerBoundaryIs></i></font></div>
<div><font size="2"><i> </Polygon></i></font></div>
<div><font size="2"><i> </Intersect></i></font></div>
<div><font size="2"><i> </Filter></i></font></div>
<div><font size="2"><i> </Rule></i></font></div>
<div><font size="2"><i> </FeatureTypeStyle></i></font></div>
<div><font size="2"><i> </UserStyle></i></font></div>
<div><font size="2"><i> </NamedLayer></i></font></div>
<div><font size="2"><i></StyledLayerDescriptor></i></font></div>
<div><font size="2"> </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"> </font></div>
<div><font size="2">I tried to modify my SLD to get also labels on the features, now using the SLD. This doesn't work, no features are drawn at all.</font></div>
<div><font size="2"> </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: filter=<i><Filter><Intersect><PropertyName>geometry</PropertyName><Polygon srsName="EPSG:28992"><outerBoundaryIs><LinearRing> <coordinates>165607,387820 165651,387813 165672,387759 165598,387800 165607,387820</coordinates></LinearRing></outerBoundaryIs></Polygon>
</Intersect></Filter></i></font></div>
<div><font size="2"> </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"> </font></div>
<div><font size="2"> </font></div>
<div><font size="2">The wanted result is: an image with the requested extent, with the filtered intersection, using the mapserver styling. </font></div>
<div><font size="2"> </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"> </font></div>
<div><font size="2"> </font></div>
<div><font size="2"> </font></div>
<div><font size="2">Greetings</font></div>
<div><font size="2"><br>
Gerben</font></div>
<div><font size="2"> </font></div>
<div><br>
<font face="Verdana, sans-serif" size="1" color="#808080"><< Please read our E-mail Disclaimer at the Grontmij Corporate website >><br>
</font></div>
</font>
</body>
</html>