<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">Dear list.</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">I am using openlayers2.7 and geoserver.</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">After loading WMS layer, I request WFS with spatial operation.</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; WORD-BREAK: keep-all; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt"> </span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; WORD-BREAK: keep-all; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">function </span><span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">wfsQuery()</span><span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt"></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">{</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt"><span style="mso-spacerun: yes"> </span>url="<a href="http://localhost:8888/geoserver/wfs?service=WFS&version=1.0.0&typename=topp:states&request=GetFeature&BBOX=-73.99312376470733,40.76203427979042,-73.9239210030026,40.80129519821393">http://localhost:8888/geoserver/wfs?service=WFS&version=1.0.0&typename=topp:states&request=GetFeature&BBOX=-73.99312376470733,40.76203427979042,-73.9239210030026,40.80129519821393</a>";</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt"> </span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">OpenLayers.loadURL(url, '', this, wfsResponse);</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">}</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt"> </span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">function wfsResponse(transport) {</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 40pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">gmlParser = new OpenLayers.Format.GML();</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span>features = gmlParser.read(transport.responseText);</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span><span style="mso-spacerun: yes"> </span>var styleMapSimple = new OpenLayers.StyleMap({</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span>strokeColor: "black",</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span>strokeWidth:1,</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span>fillColor: "orange",</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span>fillOpacity: 0.7,</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span>});</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><span style="mso-spacerun: yes"><font face="¸¼Àº °íµñ"> </font></span></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span><span style="mso-spacerun: yes"> </span><span style="mso-spacerun: yes"> </span>var layerStyled = new OpenLayers.Layer.Vector("result", {styleMap: styleMapSimple});</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span><span style="mso-spacerun: yes"> </span>layerStyled.addFeatures(features);</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span><span style="mso-spacerun: yes"> </span>map.addLayer(layerStyled);</font></span></p>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span>}</font></span></div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"></font></span> </div>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">The code above works well. But I changed the way to request such like</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; WORD-BREAK: keep-all; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">function </span><span lang="EN-US" style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">wfsQuery()</span><span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt"></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">{</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt"><span style="mso-spacerun: yes"> </span></span><span lang="EN-US"><font face="¸¼Àº °íµñ">url="<a href="http://localhost:8888/geoserver/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=topp:states&Filter=">http://localhost:8888/geoserver/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=topp:states&Filter=</a><Filter><BBOX><PropertyName>the_geom</PropertyName><Box%20srsName='EPSG:4326'><coordinates>-73.102613,%40.212597,%-72.361859,%41.512517</coordinates></Box></BBOX></Filter>";</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt"> </span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">OpenLayers.loadURL(url, '', this, wfsResponse);</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US" style="COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.0pt; mso-font-kerning: 0pt">}</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"> </font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">When I request the url above, I got an error message.</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">The error message is that</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><?xml version="1.0" ?></font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><ServiceExceptionReport</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span>version="1.2.0"</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span>xmlns="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>"</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span>xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span>xsi:schemaLocation="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a> <a href="http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd</a>"></font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span><ServiceException locator="org.vfny.geoserver.util.requests.readers.XmlRequestReader"></font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"><span style="mso-spacerun: yes"> </span>org.xml.sax.SAXException: Attempted to construct illegal filter - I dont understand the tag: Box.<span style="mso-spacerun: yes"> </span>HINT: tags are case-sensitive!</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">Attempted to construct illegal filter - I dont understand the tag: Box.<span style="mso-spacerun: yes"> </span>HINT: tags are case-sensitive!</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"></ServiceException></ServiceExceptionReport></font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"> </font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"> </font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">After several testing, I realized that when I request Comparison Operator, it works well. However, if I request Spatial Operations, I face errors.</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">How to solve this problem?</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ"> </font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">Best regards,</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="¸¼Àº °íµñ">Myeonghun Jeong.</font></span></p>