<!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>
    &lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;<br>
    &lt;html&gt;&lt;head&gt;<br>
    &lt;title&gt;500 Internal Server Error&lt;/title&gt;<br>
    &lt;/head&gt;&lt;body&gt;<br>
    &lt;h1&gt;Internal Server Error&lt;/h1&gt;<br>
    &lt;p&gt;The server encountered an internal error or<br>
    misconfiguration and was unable to complete<br>
    your request.&lt;/p&gt;<br>
    &lt;p&gt;Please contact the server administrator,<br>
    &nbsp;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.&lt;/p&gt;<br>
    &lt;p&gt;More information about this error may be available<br>
    in the server error log.&lt;/p&gt;<br>
    &lt;hr&gt;<br>
    &lt;address&gt;Apache/2.2.3 (Red Hat) Server at localhost Port
    80&lt;/address&gt;<br>
    &lt;/body&gt;&lt;/html&gt;<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>
      &nbsp; &lt;ogc:Spatial_Capabilities&gt;<br>
      &nbsp;&nbsp;&nbsp; &lt;ogc:Spatial_Operators&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:Equals/&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:Disjoint/&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:Touches/&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:Within/&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:Overlaps/&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:Crosses/&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:Intersect/&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:Contains/&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:DWithin/&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:BBOX/&gt;<br>
      &nbsp;&nbsp;&nbsp; &lt;/ogc:Spatial_Operators&gt;<br>
      &nbsp; &lt;/ogc:Spatial_Capabilities&gt;<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>
      &lt;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&nbsp; ://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>&gt;<br>
      &nbsp;&nbsp;&nbsp; &lt;wfs:Query typeName="omega"&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:Filter xmlns:ogc=<a moz-do-not-send="true"
        class="moz-txt-link-rfc2396E"
        href="http://www%A0.opengis.net/ogc">"http://www&nbsp;
        .opengis.net/ogc"</a>&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:BBOX&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &lt;ogc:PropertyName&gt;msGeometry&lt;/ogc:PropertyName&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gml:Box xmlns:gml=<a moz-do-not-send="true"
        class="moz-txt-link-rfc2396E"
        href="http:%A0//www.opengis.net/gml">"http:&nbsp;
        //www.opengis.net/gml"</a> srsName="EPSG:4326"&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gml:coordinates decimal="." cs="," ts="
      "&gt;135.45,-47.425 157.95,-36.175&lt;/gml:coordinates&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gml:Box&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ogc:BBOX&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ogc:Filter&gt;<br>
      &nbsp;&nbsp;&nbsp; &lt;/wfs:Query&gt;<br>
      &lt;/wfs:GetFeature&gt;<br>
      <br>
      The request not working looks like this:<br>
      <br>
      &lt;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>&gt;<br>
      &nbsp; &lt;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"&gt;<br>
      &nbsp;&nbsp;&nbsp; &lt;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>&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:And&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:Intersects&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &lt;ogc:PropertyName&gt;msGeometry&lt;/ogc:PropertyName&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;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"&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gml:outerBoundaryIs&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gml:LinearRing&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gml:coordinates decimal="." cs="," ts="
      "&gt;145.72880866081,-40.709423872828
      145.83867194206,-42.752880904078 148.34355475456,-40.995068404078
      145.72880866081,-40.709423872828&lt;/gml:coordinates&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gml:LinearRing&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gml:outerBoundaryIs&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gml:Polygon&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ogc:Intersects&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:BBOX&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &lt;ogc:PropertyName&gt;msGeometry&lt;/ogc:PropertyName&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;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"&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gml:coordinates decimal="." cs="," ts="
      "&gt;135.45,-47.40302734375
      157.95,-36.15302734375&lt;/gml:coordinates&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gml:Box&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ogc:BBOX&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ogc:And&gt;<br>
      &nbsp;&nbsp;&nbsp; &lt;/ogc:Filter&gt;<br>
      &nbsp; &lt;/wfs:Query&gt;<br>
      &lt;/wfs:GetFeature&gt;<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>