<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="2">
<div>Hi,</div>
<div>&nbsp;</div>
<div>I am trying to use a polygon drawfeature control to select features from my WFS Layer like a Control.SelectFeature using box:true. I am following the example located here -</div>
<div><a href="http://dev.openlayers.org/releases/OpenLayers-2.11/examples/wfs-spatial-filter.html"><font color="#0000FF"><u>http://dev.openlayers.org/releases/OpenLayers-2.11/examples/wfs-spatial-filter.html</u></font></a></div>
<div>&nbsp;</div>
<div>But with my below code nothing is selected from my WFS layer properly. Is there any way to select features and attributes from them using Polygon and intersect filter, or can the SelectFeature Control be modified to do this? Appreciate any advice</div>
<div>&nbsp;</div>
<div>Here is my code , except nothing happens when using the polygon to select wfs features - </div>
<div>&nbsp;</div>
<div>var layer_testing = new OpenLayers.Layer.Vector(&quot;WFS&quot;, {</div>
<div>&nbsp;&nbsp;&nbsp; strategies: [new OpenLayers.Strategy.BBOX()],</div>
<div>&nbsp;&nbsp;&nbsp; protocol: new OpenLayers.Protocol.WFS({</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url:&nbsp; wfs,</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featureType: &quot;Parcels_Select&quot;,</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featureNS: &quot;<a href="http://www.intergraph.com/geomedia/gml"><font color="#0000FF"><u>http://www.intergraph.com/geomedia/gml</u></font></a>&quot;,</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featurePrefix: &quot;gmgml&quot;,</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; srsName: &quot;EPSG:3776&quot;,</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; geometryName: &quot;Geometry&quot;,</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; version: &quot;1.1.0&quot;,</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maxFeatures: 1</div>
<div>&nbsp;&nbsp;&nbsp; })</div>
<div>});</div>
<div>&nbsp;</div>
<div>map.addLayer(layer_testing);</div>
<div>&nbsp;</div>
<div>var drawings = new OpenLayers.Layer.Vector();</div>
<div>map.addLayer(drawings);</div>
<div>var draw = new OpenLayers.Control.DrawFeature(drawings, OpenLayers.Handler.Polygon);</div>
<div>map.addControl(draw);</div>
<div>draw.activate();</div>
<div>&nbsp;</div>
<div>drawings.events.on({</div>
<div>&nbsp;&nbsp;&nbsp; beforefeatureadded: function(event) {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var geometry = event.feature.geometry;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layer_testing.filter = new OpenLayers.Filter.Spatial({</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type: OpenLayers.Filter.Spatial.INTERSECTS,</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value: event.feature.geometry</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layer_testing.refresh({force: true});</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return false;</div>
<div>&nbsp;&nbsp;&nbsp; }</div>
<div>});</div>
<div>&nbsp;</div>
</font>

<DIV><P><HR>
This e-mail is intended for the original recipient(s) only. If you have received it in error, please advise the sender and delete this message.
</P></DIV>
</body>
</html>