Hi<br><br>Here is the code I have tried, but I dont know what is the value for the "featureNS" parameter for the above remote query. <br><br>Here is the proxy part of the store<br><br><br>OpenLayers.ProxyHost="/<div id=":yj">
geoserver/rest/proxy?url=";<br>
<br>proxy: new GeoExt.data.ProtocolProxy({<br> protocol: new OpenLayers.Protocol.WFS({<br> url: "<a href="http://sdmdataaccess.nrcs.usda.gov/Spatial/SDMNAD83UTM.wfs" target="_blank">http://SDMDataAccess.nrcs.usda.gov/Spatial/SDMNAD83UTM.wfs</a>",<br>
version: "1.1.0",<br> featureType: "MapunitPoly",<br> featureNS: "",<br> srsName: "EPSG:4326",<br> extractAttributes: true<br> })<br>})<br><br>This is working with my local geoserver where i know the value of "featureNS".<br>
<br><br><br>I am able to retrieve data successfully with "OpenLayers.loadURL( url ,"","",responsedata)<br>where url is the full WFS query with filters. Then I could parse the response data with<br>
OpenLayers.Format.GML.read(response.responseXML)<br><br><br>But here I have no idea how to connect the responsedata to the store ?<br><br>Is
it possible to pass the whole querey as string in the url part of the
ProtocolProxy ? If it is possible I can apply the filters in the
server-side which may improve the performance.<br>
<br>It would be great if you could help me to figure out this.<br><br>Thank you<div><div><span id="q_13240708cfe54577_1" class="h4"><br></span></div></div></div><br><br><div class="gmail_quote">On Fri, Aug 5, 2011 at 12:45 PM, Matt Priour <span dir="ltr"><<a href="mailto:mpriour@kestrelcomputer.com">mpriour@kestrelcomputer.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">
<div dir="ltr">
<div style="font-family:'Arial';color:#000000;font-size:10pt">
<div>Use a ProtocolProxy with a WFS protocol and configure OpenLayers with a
ProxyHost</div>
<div>Matt Priour</div>
<div>Kestrel Computer Consulting</div>
<div> </div>
<div>[1] GeoExt ProtocolProxy - <a href="http://dev.geoext.org/docs/lib/GeoExt/data/ProtocolProxy.html" target="_blank"><font face="Times New Roman"><font style="font-size:12pt">http://dev.geoext.org/docs/lib/GeoExt/data/ProtocolProxy.html</font></font></a><font face="Times New Roman"><font style="font-size:12pt"> </font></font></div>
<div>[2] OpenLayers WFS Protocol - <a href="http://dev.openlayers.org/docs/files/OpenLayers/Protocol/WFS/v1-js.html" target="_blank"><font face="Times New Roman"><font style="font-size:12pt">http://dev.openlayers.org/docs/files/OpenLayers/Protocol/WFS/v1-js.html</font></font></a><font face="Times New Roman"><font style="font-size:12pt"> </font></font></div>
<div>[3] OpenLayers ProxyHost - <a href="http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost" target="_blank"><font face="Times New Roman"><font style="font-size:12pt">http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost</font></font></a><font face="Times New Roman"><font style="font-size:12pt"> </font></font></div>
<div style="font-style:normal;display:inline;font-family:'Calibri';color:#000000;font-size:small;font-weight:normal;text-decoration:none">
<div style="font:10pt tahoma">
<div> </div>
<div style="background:#f5f5f5">
<div><b>From:</b> <a title="surendrankn@gmail.com" href="mailto:surendrankn@gmail.com" target="_blank">Surendran Neelakantan</a> </div>
<div><b>Sent:</b> Friday, August 05, 2011 10:41 AM</div>
<div><b>To:</b> <a title="users@geoext.org" href="mailto:users@geoext.org" target="_blank">users@geoext.org</a> </div>
<div><b>Subject:</b> [Users] How to use OGC filters with
Geoext</div></div></div>
<div> </div></div>
<div style="font-style:normal;display:inline;font-family:'Calibri';color:#000000;font-size:small;font-weight:normal;text-decoration:none"><div><div></div><div class="h5"><br>Hi<br><br>I
would like to know the best way to use OGC WFS filters with GeoEXT. I
want to query a WFS server and get the response data in GML format in a
grid. a sample query look like following. <br><br><a name="1319ad59a9a2de98_content"></a><a href="http://sdmdataaccess.nrcs.usda.gov/Spatial/SDMNAD83UTM.wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=MapunitPoly&FILTER=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3EGeometry%3C/PropertyName%3E%3CBox%20srsName=%27EPSG:4236%27%3E%3Ccoordinates%3E-121.77100,37.368402%20-121.76000,37.373473%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E&SRSNAME=EPSG:26910&OUTPUTFORMAT=GML2" target="_blank">http://SDMDataAccess.nrcs.usda.gov/Spatial/SDMNAD83UTM.wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature
&TYPENAME=MapunitPoly&FILTER=<Filter><BBOX><PropertyName>Geometry</PropertyName>
<Box srsName='EPSG:4236'><coordinates>-121.77100,37.368402
-121.76000,37.373473</coordinates>
</Box></BBOX></Filter>&SRSNAME=EPSG:26910&OUTPUTFORMAT=GML2
</a><br><br> <br>How do I overcome the same origin policy when
creating a data store with the above query.?<br><br>It would be great if
somebody can show me a working example with the above query.<br><br>Thank
you<br><br><br><br><br>
</div></div><p>
</p><hr>
_______________________________________________<br>Users mailing
list<br><a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br><a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<p></p></div></div></div></div>
</blockquote></div><br>