<div dir="ltr">Dear all,<div><br></div><div>I am happy that i am using openlayers so greatly. Now i came to filters. Here is my code.</div><div><br></div><div><div>var wfs_layer = new OpenLayers.Layer.Vector("settlements", {</div>
<div>strategies: [new OpenLayers.Strategy.BBOX()],</div><div>protocol: new OpenLayers.Protocol.WFS({</div><div>version: "1.0.0",</div><div>url: "<a href="http://192.168.1.19:8081/geoserver/wfs">http://192.168.1.19:8081/geoserver/wfs</a>",</div>
<div>featureType: "settlements",</div><div>featureNS: "<a href="http://www.gospatial.com">www.gospatial.com</a>",</div><div>srsName: "EPSG:900913",</div><div>visibility: true</div><div>}),</div>
<div>filter: new OpenLayers.Filter.Spatial({type: OpenLayers.Filter.Spatial.DWITHIN,property: "the_geom",value: "OpenLayers.Geometry.Point([longitude, latitiude])",distance:"100",distanceUnits:'m'})</div>
<div>}) </div><div><br></div><div style>Problem is.... after adding the "filter" option to my WFS layer, i am not getting any result. tried in many ways. but failed.</div><div style><br></div><div style>please help and thank you.</div>
<div><br></div>-- <br><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div><b>Thanking you,</b></div><div><b>D.K Siva Kumar,</b></div><div><b><br></b></div></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Research Engineer,<br></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Indian Institute for Human Settlement (iihs),</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
tharangavana,<br><em style="font-style:normal;line-height:16px">sadashivanagar,</em></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Bangalore-15</div>
</div></div>