<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Sorry, I forgot to mention the Error message:<br>
<br>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><br>
<html><head><br>
<title>500 Internal Server Error</title><br>
</head><body><br>
<h1>Internal Server Error</h1><br>
<p>The server encountered an internal error or<br>
misconfiguration and was unable to complete<br>
your request.</p><br>
<p>Please contact the server administrator,<br>
root@localhost and inform them of the time the error occurred,<br>
and anything you might have done that may have<br>
caused the error.</p><br>
<p>More information about this error may be available<br>
in the server error log.</p><br>
<hr><br>
<address>Apache/2.2.3 (Red Hat) Server at localhost Port
80</address><br>
</body></html><br>
<br>
Thanks,<br>
Bryan<br>
<br>
On 05/08/2011 13:02, Bryan Hempen wrote:
<blockquote
cite="mid:25280_1312542190_4E3BCDEE_25280_1080043_1_4E3BCDB9.7080001@sciops.esa.int"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
The problem: I am trying to implement something similar to <a
moz-do-not-send="true"
href="http://openlayers.org/dev/examples/wfs-spatial-filter.html">http://openlayers.org/dev/examples/wfs-spatial-filter.html</a>
with my own data served by MapServer through a WFS. I just changed
some lines in the code to make it work with MapServer, so the code
is almost equal to the code in the example at the moment. So far
it's working fine UNTIL I drag the polygon to apply the spatial
filter! According to the getCapabitilies the server should be able
to handle the request:<br>
<br>
...<br>
<ogc:Spatial_Capabilities><br>
<ogc:Spatial_Operators><br>
<ogc:Equals/><br>
<ogc:Disjoint/><br>
<ogc:Touches/><br>
<ogc:Within/><br>
<ogc:Overlaps/><br>
<ogc:Crosses/><br>
<ogc:Intersect/><br>
<ogc:Contains/><br>
<ogc:DWithin/><br>
<ogc:BBOX/><br>
</ogc:Spatial_Operators><br>
</ogc:Spatial_Capabilities><br>
...<br>
<br>
Both WFS GetFeature requests are sent via HTTP POST. The first one
that works (called on page load) looks like this: <br>
<br>
<wfs:GetFeature xmlns:wfs=<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="http://www.opengis.net/wfs">"http://www.opengis.net/wfs"</a>
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
service="WFS" version="1.0.0" xsi:schemaLocation=<a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://www.opengis.net/wfshttp://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd">"http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd"</a>><br>
<wfs:Query typeName="omega"><br>
<ogc:Filter xmlns:ogc=<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="http://www%A0.opengis.net/ogc">"http://www
.opengis.net/ogc"</a>><br>
<ogc:BBOX><br>
<ogc:PropertyName>msGeometry</ogc:PropertyName><br>
<gml:Box xmlns:gml=<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="http:%A0//www.opengis.net/gml">"http:
//www.opengis.net/gml"</a> srsName="EPSG:4326"><br>
<gml:coordinates decimal="." cs="," ts="
">135.45,-47.425 157.95,-36.175</gml:coordinates><br>
</gml:Box><br>
</ogc:BBOX><br>
</ogc:Filter><br>
</wfs:Query><br>
</wfs:GetFeature><br>
<br>
The request not working looks like this:<br>
<br>
<wfs:GetFeature xmlns:wfs=<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="http://www.opengis.net/wfs">"http://www.opengis.net/wfs"</a>
xmlns:xsi=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
service="WFS" version="1.0.0" xsi:schemaLocation=<a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://www.opengis.net/wfshttp://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd">"http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd"</a>><br>
<wfs:Query xmlns:ms=<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="http://mapserver.gis.umn.edu/mapserver">"http://mapserver.gis.umn.edu/mapserver"</a>
typeName="ms:omega"><br>
<ogc:Filter xmlns:ogc=<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>><br>
<ogc:And><br>
<ogc:Intersects><br>
<ogc:PropertyName>msGeometry</ogc:PropertyName><br>
<gml:Polygon xmlns:gml=<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>
srsName="EPSG:4326"><br>
<gml:outerBoundaryIs><br>
<gml:LinearRing><br>
<gml:coordinates decimal="." cs="," ts="
">145.72880866081,-40.709423872828
145.83867194206,-42.752880904078 148.34355475456,-40.995068404078
145.72880866081,-40.709423872828</gml:coordinates><br>
</gml:LinearRing><br>
</gml:outerBoundaryIs><br>
</gml:Polygon><br>
</ogc:Intersects><br>
<ogc:BBOX><br>
<ogc:PropertyName>msGeometry</ogc:PropertyName><br>
<gml:Box xmlns:gml=<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>
srsName="EPSG:4326"><br>
<gml:coordinates decimal="." cs="," ts="
">135.45,-47.40302734375
157.95,-36.15302734375</gml:coordinates><br>
</gml:Box><br>
</ogc:BBOX><br>
</ogc:And><br>
</ogc:Filter><br>
</wfs:Query><br>
</wfs:GetFeature><br>
<br>
Does anyone have an idea? Any help is appreciated, I am stuck. <br>
<br>
The setup:<br>
<ul>
<li>OS: Red Hat Enterprise Linux 5.4</li>
<li>PostgreSQL 8.2</li>
<li>PostGIS 1.3 <br>
</li>
<li>MapServer 5.6.5</li>
<li>OpenLayers, one of the latest versions. ProxyHost set and
working (calling the proxy.cgi shows OpenLayers website)</li>
</ul>
Kind regards,<br>
Bryan<br>
<pre>================================================================================================
This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure,
use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in
error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by
the sender.
Please consider the environment before printing this email.
=================================================================================================
</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
<br>
<PRE>================================================================================================
This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure,
use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in
error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by
the sender.
Please consider the environment before printing this email.
=================================================================================================
</PRE></body>
</html>