<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr"><div><div><div><div><div><div>Thank you very much Phil,<br><br></div>As you told there is a problem with distance. i instead used BBox for spatial filter and it worked. I am using mouse click that gives Bbox the geometry. every thing is going good.<br>

</div>Now i am facing one more problem.<br></div>When i click on the map, the resulting features with in the the specified limit are popping up on the map. (Happy till that)<br></div>when i click second time somewhere on the map, i expected the layer will get updated freshly giving me new results. But the same layer is adding and adding to the map.<br>

</div>How can i redraw or update the wfs layer after each spatial query.<br></div><div>I attached an image for reference<br></div>kindly suggest<br></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">
On Fri, Apr 5, 2013 at 2:17 AM, Phil Scadden <span dir="ltr"><<a href="mailto:p.scadden@gns.cri.nz" target="_blank">p.scadden@gns.cri.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I see you are using geoserver. Geoserver does not respect the distanceUnits parameter. You have to specify the distance in the units of the native projection. What I strongly recommend is using firebug or developer tools in Chrome and looking at the actual POST that OL generates from this request. You can use CURL or this handy tool <a href="http://code.google.com/p/rest-client/" target="_blank">http://code.google.com/p/rest-<u></u>client/</a> to recreate the request. Fiddle with the numbers in that request till it actually works and then work backwards to get it into your code.<br>


<br>
Notice: This email and any attachments are confidential.<br>
If received in error please destroy and immediately notify us.<br>
Do not copy or disclose the contents.<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/openlayers-<u></u>users</a><br>
</blockquote></div><br><br clear="all"><br></div></div>-- <br><div style="font-size:13px;font-family:arial,sans-serif"><div class="im"><div><b>Thanking you,</b></div><div><b>D.K Siva Kumar,</b></div><div><br></div></div>
</div></div></div><br>
</div>