<div>Hi Roald,</div>
<div>There are two things I want to know.</div>
<div>1. How to send WFS requests to server with openlayers? I know the way to load WFS layers when I initialize map, but after loading layers, I don&#39;t know how to request WFS with Spatial Operations in OpenLayers.</div>

<div> </div>
<div>2. I also want to know the way to display a WFS layer on my map that automatically requests the correct features within the BBOX of the viewport?</div>
<div> </div>
<div>Thanks in advance.</div>
<div> </div>
<div>Best Regrards,</div>
<div>Myeonghun Jeong.</div>
<div><br><br> </div>
<div class="gmail_quote">2009/4/25 Roald de Wit <span dir="ltr">&lt;<a href="mailto:roald.dewit@lisasoft.com">roald.dewit@lisasoft.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Myeonghun Jeong,<br><br>Can you explain what you try to do? Do you want to display a WFS layer on your map that automatically requests the correct features within the BBOX of the viewport or do you want to have control over what BBOX you send to the WFS server and send your WFS &#39;manually&#39;?<br>
<br>Maybe it is good to have a look at some examples (type WFS in the search box): [1].<br><br>Regards, Roald<br><br>[1] <a href="http://www.openlayers.org/dev/examples/" target="_blank">http://www.openlayers.org/dev/examples/</a><br>
<br>Myeong Hun Jeong wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im"><br>Dear list.<br><br>I want to know how to use openlayers when I request WFS with Spatial Operations.<br><br>For example, at GeoServer Demo Request page, I can fin WFS_getFeatureBBox01.1.url and WFS_getFeatureBBox01.1.xml samples.<br>
<br>So, the request is that<br><br></div><a href="http://localhost:8888/geoserver/wfs?request=GetFeature&amp;version=1.0.0&amp;typeName=topp:states&amp;propertyName=STATE_NAME,PERSONS&amp;BBOX=-75.102613,40.212597,-72.361859,41.512517" target="_blank">http://localhost:8888/geoserver/wfs?request=GetFeature&amp;version=1.0.0&amp;typeName=topp:states&amp;propertyName=STATE_NAME,PERSONS&amp;BBOX=-75.102613,40.212597,-72.361859,41.512517</a> &lt;<a href="http://localhost:8888/geoserver/wfs?request=GetFeature&amp;version=1.0.0&amp;typeName=topp:states&amp;propertyName=STATE_NAME,PERSONS&amp;BBOX=-75.102613,40.212597,-72.361859,41.512517" target="_blank">http://localhost:8888/geoserver/wfs?request=GetFeature&amp;version=1.0.0&amp;typeName=topp:states&amp;propertyName=STATE_NAME,PERSONS&amp;BBOX=-75.102613,40.212597,-72.361859,41.512517</a>&gt; 
<div>
<div></div>
<div class="h5"><br><br>or<br><br><a href="http://localhost:8888/geoserver/wfs" target="_blank">http://localhost:8888/geoserver/wfs</a><br><br>&lt;wfs:GetFeature service=&quot;WFS&quot; version=&quot;1.1.0&quot;<br><br> xmlns:topp=&quot;<a href="http://www.openplans.org/topp" target="_blank">http://www.openplans.org/topp</a>&quot;<br>
<br> xmlns:wfs=&quot;<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>&quot;<br><br> xmlns:ogc=&quot;<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>&quot;<br>
<br> xmlns:gml=&quot;<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a>&quot;<br><br> xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot;<br>
<br> xsi:schemaLocation=&quot;<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a><br><br>                     <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" target="_blank">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>&quot;&gt;<br>
<br> &lt;wfs:Query typeName=&quot;topp:states&quot;&gt;<br><br>   &lt;wfs:PropertyName&gt;topp:STATE_NAME&lt;/wfs:PropertyName&gt;<br><br>   &lt;wfs:PropertyName&gt;topp:PERSONS&lt;/wfs:PropertyName&gt;<br><br>   &lt;ogc:Filter&gt;<br>
<br>     &lt;ogc:BBOX&gt;<br><br>       &lt;ogc:PropertyName&gt;the_geom&lt;/ogc:PropertyName&gt;<br><br>       &lt;gml:Envelope srsName=&quot;<a href="http://www.opengis.net/gml/srs/epsg.xml#4326" target="_blank">http://www.opengis.net/gml/srs/epsg.xml#4326</a>&quot;&gt;<br>
<br>          &lt;gml:lowerCorner&gt;-75.102613 40.212597&lt;/gml:lowerCorner&gt;<br><br>          &lt;gml:upperCorner&gt;-72.361859 41.512517&lt;/gml:upperCorner&gt;<br><br>       &lt;/gml:Envelope&gt;<br><br>     &lt;/ogc:BBOX&gt;<br>
<br>  &lt;/ogc:Filter&gt;<br><br> &lt;/wfs:Query&gt;<br><br>&lt;/wfs:GetFeature&gt;<br><br> <br>But when I use openlayers, how to request thses requests exactly?<br><br>For instance, when I request GetFeatureInfo with openlayers.<br>
<br>// support GetFeatureInfo<br><br>           map.events.register(&#39;click&#39;, map, function (e) {<br><br>               document.getElementById(&#39;nodelist&#39;).innerHTML = &quot;Loading... please wait...&quot;;<br>
<br>               var url =  map.layers[0].getFullRequestString(<br><br>                   {<br><br>                       REQUEST: &quot;GetFeatureInfo&quot;,<br><br>                       EXCEPTIONS: &quot;application/vnd.ogc.se_xml&quot;,<br>
<br>                       BBOX: map.getExtent().toBBOX(),<br><br>                       X: e.xy.x,<br><br>                       Y: e.xy.y,<br><br>                       INFO_FORMAT: &#39;text/html&#39;,<br><br>                       QUERY_LAYERS: map.layers[0].params.LAYERS,<br>
<br>                       FEATURE_COUNT: 50,<br><br>                       WIDTH: map.size.w,<br><br>                       HEIGHT: map.size.h<br><br>                   },<br><br>                   &quot;<a href="http://localhost:8888/geoserver/wms" target="_blank">http://localhost:8888/geoserver/wms</a>&quot;<br>
<br>               );<br><br>               OpenLayers.loadURL(url, &#39;&#39;, this, setHTML, setHTML);<br><br>               OpenLayers.Event.stop(e);<br><br>           });<br><br>       }<br><br> <br> <br>Please, give me a piece of information.<br>
<br> <br>Best regards,<br><br>Myeonghun Jeong.<br><br> <br> <br></div></div></blockquote><br></blockquote></div><br>