<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
My code for (combining WFS feature info with SLDSelect) like this:<br>
wfsProtocol = new OpenLayers.Protocol.WFS.v1_1_0({<br>
url: layerURL,<br>
geometryName: "SHAPE",<br>
featurePrefix: layerfeaturePrefix,<br>
featureType: layerfeatureType,<br>
srsName: "EPSG:900913" <br>
});<br>
<br>
SLDControl = new
OpenLayers.Control.SLDSelect(OpenLayers.Handler.Polygon,<br>
{<br>
displayClass:
'olControlSLDSelectPolygon',<br>
layers:[mylayer]<br>
}); <br>
SLDControl.events.register("selected", this,
function(e){<br>
wfsProtocol.read({<br>
filter: e.filters[0],<br>
propertyNames: propNames, <br>
callback: processSpatialQuery, <br>
scope: strategy<br>
});<br>
});<br>
<br>
The WFS query is working as hoped for. The SLDSelect is not (with or
without the combined WFS) in the sense that the no highlighted
features are shown at all. All tiles show blank in firebug.<br>
<br>
The Get to WMS look correct and here is the SLD part of the header
for the request. (It one very long request string). Any ideas?<br>
<br>
<code role="listitem" class="focusRow subFocusRow "><sld:StyledLayerDescriptor
xmlns:sld=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/sld">"http://www.opengis.net/sld"</a> version="1.0.0"
xsi:schemaLocation</code><code role="listitem" class="focusRow
subFocusRow ">=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/sldhttp://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">"http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"</a>
xmlns:xsi</code><code role="listitem" class="focusRow subFocusRow
">=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
xmlns:ogc=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a> xmlns:gml="http:</code><code
role="listitem" class="focusRow subFocusRow ">//www.opengis.net/gml"><sld:NamedLayer><sld:Name>gns:PETROLEUM.NZ_2D_SEIS_LINES</sld:Name><sld:UserStyle</code><code
role="listitem" class="focusRow subFocusRow ">><sld:Name>default</sld:Name><sld:FeatureTypeStyle><sld:Rule><ogc:Filter
xmlns:ogc="<a class="moz-txt-link-freetext" href="http://www.opengis">http://www.opengis</a></code><code role="listitem"
class="focusRow subFocusRow ">.net/ogc"><ogc:Intersects><ogc:PropertyName>SHAPE</ogc:PropertyName><gml:Polygon
xmlns:gml="<a class="moz-txt-link-freetext" href="http://www">http://www</a></code><code role="listitem" class="focusRow
subFocusRow ">.opengis.net/gml"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates
decimal="." cs="," ts=" ">18443134</code><code role="listitem"
class="focusRow subFocusRow ">.392446,-6499153.984073
18571548.599942,-6502822.96143 18555649.698062,-6639798.1160925
18432127.460375</code><code role="listitem" class="focusRow
subFocusRow ">,-6630014.1764738
18443134.392446,-6499153.984073</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs</code><code
role="listitem" class="focusRow subFocusRow ">></gml:Polygon></ogc:Intersects></ogc:Filter><sld:LineSymbolizer><sld:Stroke><sld:CssParameter
name="stroke"</code><code role="listitem" class="focusRow
subFocusRow ">>#FF0000</sld:CssParameter><sld:CssParameter
name="stroke-width">2</sld:CssParameter></sld:Stroke></sld</code><code
role="listitem" class="focusRow subFocusRow ">:LineSymbolizer></sld:Rule></sld:FeatureTypeStyle></sld:UserStyle></sld:NamedLayer></sld:StyledLayerDescriptor</code><code
role="listitem" class="focusRow subFocusRow ">></code><br>
<br>
<br>
<div class="moz-signature">-- <br>
Phil Scadden, Senior Scientist
GNS Science Ltd
764 Cumberland St, Private Bag 1930, Dunedin, New Zealand
Ph +64 3 4799663, fax +64 3 477 5232</div>
<br>
<p><span style="font-family:'Arial';font-size:8pt; color:#000000;">Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.</span></p>
<p><span style="font-family:'Arial';font-size:8pt; color:#000000;"> </span></p></body>
</html>