Unsupported Filter

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Unsupported Filter

Farwell, Michael D - Exelis

Mapserver dev,

 

Does anyone know why the UMN demo map server does not support the following WFS 1.0.0 post request?:

 

curl -X POST 'http://demo.mapserver.org/cgi-bin/wfs?REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS' -d @/tmp/post.xml -H 'Content-Type: application/xml' –k

 

Where /tmp/post.xml contains:

 

<?xml version="1.0" encoding="UTF-8"?><wfs:GetFeature xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ms="http://mapserver.gis.umn.edu/mapserver" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" handle="GeoTools 13-SNAPSHOT(f758d2e99d6008f6a27438946de5ef914960f605) WFS 1.0.0 DataStore @localhost.localdomain#1" maxFeatures="10" outputFormat="GML2" service="WFS" version="1.0.0">

<wfs:Query typeName="ms:cities">

  <ogc:PropertyName>POPULATION</ogc:PropertyName>

  <ogc:Filter>

   <ogc:BBOX>

    <ogc:PropertyName>msGeometry</ogc:PropertyName>

    <gml:Box srsName="urn:x-ogc:def:crs:EPSG:4326">

     <gml:coord>

      <gml:X>-59.0</gml:X>

      <gml:Y>-35.0</gml:Y>

     </gml:coord>

     <gml:coord>

      <gml:X>-58.0</gml:X>

      <gml:Y>-34.0</gml:Y>

     </gml:coord>

    </gml:Box>

   </ogc:BBOX>

  </ogc:Filter>

</wfs:Query>

</wfs:GetFeature>

 

I’m getting the following message:

 

WFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature

 

Thanks,

 

Mike




This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Exelis Inc. The recipient should check this e-mail and any attachments for the presence of viruses. Exelis Inc. accepts no liability for any damage caused by any virus transmitted by this e-mail.

_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Reply | Threaded
Open this post in threaded view
|

Re: Unsupported Filter

Lime, Steve D (MNIT)

That’s a 5.6.5 server. I wonder if newer versions have the same limitation.

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Farwell, Michael D - Exelis
Sent: Thursday, October 30, 2014 10:23 AM
To: [hidden email]
Subject: [mapserver-dev] Unsupported Filter

 

Mapserver dev,

 

Does anyone know why the UMN demo map server does not support the following WFS 1.0.0 post request?:

 

curl -X POST 'http://demo.mapserver.org/cgi-bin/wfs?REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS' -d @/tmp/post.xml -H 'Content-Type: application/xml' –k

 

Where /tmp/post.xml contains:

 

<?xml version="1.0" encoding="UTF-8"?><wfs:GetFeature xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ms="http://mapserver.gis.umn.edu/mapserver" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" handle="GeoTools 13-SNAPSHOT(f758d2e99d6008f6a27438946de5ef914960f605) WFS 1.0.0 DataStore @localhost.localdomain#1" maxFeatures="10" outputFormat="GML2" service="WFS" version="1.0.0">

<wfs:Query typeName="ms:cities">

  <ogc:PropertyName>POPULATION</ogc:PropertyName>

  <ogc:Filter>

   <ogc:BBOX>

    <ogc:PropertyName>msGeometry</ogc:PropertyName>

    <gml:Box srsName="urn:x-ogc:def:crs:EPSG:4326">

     <gml:coord>

      <gml:X>-59.0</gml:X>

      <gml:Y>-35.0</gml:Y>

     </gml:coord>

     <gml:coord>

      <gml:X>-58.0</gml:X>

      <gml:Y>-34.0</gml:Y>

     </gml:coord>

    </gml:Box>

   </ogc:BBOX>

  </ogc:Filter>

</wfs:Query>

</wfs:GetFeature>

 

I’m getting the following message:

 

WFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature

 

Thanks,

 

Mike

 



This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Exelis Inc. The recipient should check this e-mail and any attachments for the presence of viruses. Exelis Inc. accepts no liability for any damage caused by any virus transmitted by this e-mail.


_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Reply | Threaded
Open this post in threaded view
|

Re: Unsupported Filter

Farwell, Michael D - Exelis

Steve,

 

Thanks for the reply.

 

I’m having the same issue with an internal 6.x mapserver, so I tried the demo server.  Are you aware of other publicly available mapservers that could be used for minimal testing.

 

Mike

 

From: Lime, Steve D (MNIT) [mailto:[hidden email]]
Sent: Thursday, October 30, 2014 11:38 AM
To: Farwell, Michael D - Exelis; [hidden email]
Subject: RE: Unsupported Filter

 

That’s a 5.6.5 server. I wonder if newer versions have the same limitation.

 

From: [hidden email] [[hidden email]] On Behalf Of Farwell, Michael D - Exelis
Sent: Thursday, October 30, 2014 10:23 AM
To: [hidden email]
Subject: [mapserver-dev] Unsupported Filter

 

Mapserver dev,

 

Does anyone know why the UMN demo map server does not support the following WFS 1.0.0 post request?:

 

curl -X POST 'http://demo.mapserver.org/cgi-bin/wfs?REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS' -d @/tmp/post.xml -H 'Content-Type: application/xml' –k

 

Where /tmp/post.xml contains:

 

<?xml version="1.0" encoding="UTF-8"?><wfs:GetFeature xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ms="http://mapserver.gis.umn.edu/mapserver" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" handle="GeoTools 13-SNAPSHOT(f758d2e99d6008f6a27438946de5ef914960f605) WFS 1.0.0 DataStore @localhost.localdomain#1" maxFeatures="10" outputFormat="GML2" service="WFS" version="1.0.0">

<wfs:Query typeName="ms:cities">

  <ogc:PropertyName>POPULATION</ogc:PropertyName>

  <ogc:Filter>

   <ogc:BBOX>

    <ogc:PropertyName>msGeometry</ogc:PropertyName>

    <gml:Box srsName="urn:x-ogc:def:crs:EPSG:4326">

     <gml:coord>

      <gml:X>-59.0</gml:X>

      <gml:Y>-35.0</gml:Y>

     </gml:coord>

     <gml:coord>

      <gml:X>-58.0</gml:X>

      <gml:Y>-34.0</gml:Y>

     </gml:coord>

    </gml:Box>

   </ogc:BBOX>

  </ogc:Filter>

</wfs:Query>

</wfs:GetFeature>

 

I’m getting the following message:

 

WFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature

 

Thanks,

 

Mike

 



This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Exelis Inc. The recipient should check this e-mail and any attachments for the presence of viruses. Exelis Inc. accepts no liability for any damage caused by any virus transmitted by this e-mail.


_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Reply | Threaded
Open this post in threaded view
|

Re: Unsupported Filter

Rahkonen Jukka (Tike)
In reply to this post by Farwell, Michael D - Exelis

Hi,

 

I did not study why it does not work but here is a complete GetFeature POST with BBOX filter that works. Compare with yours and report what makes the difference.

 

POST http://demo.mapserver.org/cgi-bin/wfs HTTP/1.1

Content-Type: text/xml

User-Agent: Jakarta Commons-HttpClient/3.0-beta1

Host: demo.mapserver.org

Proxy-Connection: Keep-Alive

Content-Length: 835

 

<wfs:GetFeature service="WFS" version="1.0.0" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd" maxFeatures="1000" outputFormat="GML2"><wfs:Query typeName="cities"><ogc:PropertyName>NAME</ogc:PropertyName><ogc:PropertyName>POPULATION</ogc:PropertyName><ogc:PropertyName>msGeometry</ogc:PropertyName><ogc:Filter><ogc:BBOX><ogc:PropertyName>msGeometry</ogc:PropertyName><gml:Box xmlns:gml="http://www.opengis.net/gml"><gml:coordinates cs="," decimal="." ts=" ">-56.020765027322405,-4.650424681845783 -36.836187006678806,25.4390713715847</gml:coordinates></gml:Box></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>

 

 

-Jukka Rahkonen-

 

 

Lähettäjä: [hidden email] [mailto:[hidden email]] Puolesta Farwell, Michael D - Exelis
Lähetetty: 30. lokakuuta 2014 17:42
Vastaanottaja: Lime, Steve D (MNIT); [hidden email]
Aihe: Re: [mapserver-dev] Unsupported Filter

 

Steve,

 

Thanks for the reply.

 

I’m having the same issue with an internal 6.x mapserver, so I tried the demo server.  Are you aware of other publicly available mapservers that could be used for minimal testing.

 

Mike

 

From: Lime, Steve D (MNIT) [[hidden email]]
Sent: Thursday, October 30, 2014 11:38 AM
To: Farwell, Michael D - Exelis; [hidden email]
Subject: RE: Unsupported Filter

 

That’s a 5.6.5 server. I wonder if newer versions have the same limitation.

 

From: [hidden email] [[hidden email]] On Behalf Of Farwell, Michael D - Exelis
Sent: Thursday, October 30, 2014 10:23 AM
To: [hidden email]
Subject: [mapserver-dev] Unsupported Filter

 

Mapserver dev,

 

Does anyone know why the UMN demo map server does not support the following WFS 1.0.0 post request?:

 

curl -X POST 'http://demo.mapserver.org/cgi-bin/wfs?REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS' -d @/tmp/post.xml -H 'Content-Type: application/xml' –k

 

Where /tmp/post.xml contains:

 

<?xml version="1.0" encoding="UTF-8"?><wfs:GetFeature xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ms="http://mapserver.gis.umn.edu/mapserver" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" handle="GeoTools 13-SNAPSHOT(f758d2e99d6008f6a27438946de5ef914960f605) WFS 1.0.0 DataStore @localhost.localdomain#1" maxFeatures="10" outputFormat="GML2" service="WFS" version="1.0.0">

<wfs:Query typeName="ms:cities">

  <ogc:PropertyName>POPULATION</ogc:PropertyName>

  <ogc:Filter>

   <ogc:BBOX>

    <ogc:PropertyName>msGeometry</ogc:PropertyName>

    <gml:Box srsName="urn:x-ogc:def:crs:EPSG:4326">

     <gml:coord>

      <gml:X>-59.0</gml:X>

      <gml:Y>-35.0</gml:Y>

     </gml:coord>

     <gml:coord>

      <gml:X>-58.0</gml:X>

      <gml:Y>-34.0</gml:Y>

     </gml:coord>

    </gml:Box>

   </ogc:BBOX>

  </ogc:Filter>

</wfs:Query>

</wfs:GetFeature>

 

I’m getting the following message:

 

WFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature

 

Thanks,

 

Mike

 



This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Exelis Inc. The recipient should check this e-mail and any attachments for the presence of viruses. Exelis Inc. accepts no liability for any damage caused by any virus transmitted by this e-mail.


_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Reply | Threaded
Open this post in threaded view
|

Re: Unsupported Filter

Farwell, Michael D - Exelis

Rahkonen,

 

Thanks for an actual working query.

 

Turns out it was the style of the coordinates.

 

<gml:coord><gml:X>-59.0</gml:X><gml:Y>-35.0</gml:Y></gml:coord><gml:coord><gml:X>-58.0</gml:X><gml:Y>-34.0</gml:Y></gml:coord>

Vs.

<gml:coordinates cs="," decimal="." ts=" ">-59,-35 -58,-34</gml:coordinates>

 

Unfortunately, GeoTools formulates the request as X,Y.  There may be a way to override this behavior.

 

Thanks for your help.

 

Mike

 

 

From: Rahkonen Jukka (Tike) [mailto:[hidden email]]
Sent: Thursday, October 30, 2014 12:20 PM
To: Farwell, Michael D - Exelis; 'Lime, Steve D (MNIT)'; '[hidden email]'
Subject: Re: Unsupported Filter

 

Hi,

 

I did not study why it does not work but here is a complete GetFeature POST with BBOX filter that works. Compare with yours and report what makes the difference.

 

POST http://demo.mapserver.org/cgi-bin/wfs HTTP/1.1

Content-Type: text/xml

User-Agent: Jakarta Commons-HttpClient/3.0-beta1

Host: demo.mapserver.org

Proxy-Connection: Keep-Alive

Content-Length: 835

 

<wfs:GetFeature service="WFS" version="1.0.0" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd" maxFeatures="1000" outputFormat="GML2"><wfs:Query typeName="cities"><ogc:PropertyName>NAME</ogc:PropertyName><ogc:PropertyName>POPULATION</ogc:PropertyName><ogc:PropertyName>msGeometry</ogc:PropertyName><ogc:Filter><ogc:BBOX><ogc:PropertyName>msGeometry</ogc:PropertyName><gml:Box xmlns:gml="http://www.opengis.net/gml"><gml:coordinates cs="," decimal="." ts=" ">-56.020765027322405,-4.650424681845783 -36.836187006678806,25.4390713715847</gml:coordinates></gml:Box></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>

 

 

-Jukka Rahkonen-

 

 

Lähettäjä: [hidden email] [[hidden email]] Puolesta Farwell, Michael D - Exelis
Lähetetty: 30. lokakuuta 2014 17:42
Vastaanottaja: Lime, Steve D (MNIT); [hidden email]
Aihe: Re: [mapserver-dev] Unsupported Filter

 

Steve,

 

Thanks for the reply.

 

I’m having the same issue with an internal 6.x mapserver, so I tried the demo server.  Are you aware of other publicly available mapservers that could be used for minimal testing.

 

Mike

 

From: Lime, Steve D (MNIT) [[hidden email]]
Sent: Thursday, October 30, 2014 11:38 AM
To: Farwell, Michael D - Exelis; [hidden email]
Subject: RE: Unsupported Filter

 

That’s a 5.6.5 server. I wonder if newer versions have the same limitation.

 

From: [hidden email] [[hidden email]] On Behalf Of Farwell, Michael D - Exelis
Sent: Thursday, October 30, 2014 10:23 AM
To: [hidden email]
Subject: [mapserver-dev] Unsupported Filter

 

Mapserver dev,

 

Does anyone know why the UMN demo map server does not support the following WFS 1.0.0 post request?:

 

curl -X POST 'http://demo.mapserver.org/cgi-bin/wfs?REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS' -d @/tmp/post.xml -H 'Content-Type: application/xml' –k

 

Where /tmp/post.xml contains:

 

<?xml version="1.0" encoding="UTF-8"?><wfs:GetFeature xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ms="http://mapserver.gis.umn.edu/mapserver" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" handle="GeoTools 13-SNAPSHOT(f758d2e99d6008f6a27438946de5ef914960f605) WFS 1.0.0 DataStore @localhost.localdomain#1" maxFeatures="10" outputFormat="GML2" service="WFS" version="1.0.0">

<wfs:Query typeName="ms:cities">

  <ogc:PropertyName>POPULATION</ogc:PropertyName>

  <ogc:Filter>

   <ogc:BBOX>

    <ogc:PropertyName>msGeometry</ogc:PropertyName>

    <gml:Box srsName="urn:x-ogc:def:crs:EPSG:4326">

     <gml:coord>

      <gml:X>-59.0</gml:X>

      <gml:Y>-35.0</gml:Y>

     </gml:coord>

     <gml:coord>

      <gml:X>-58.0</gml:X>

      <gml:Y>-34.0</gml:Y>

     </gml:coord>

    </gml:Box>

   </ogc:BBOX>

  </ogc:Filter>

</wfs:Query>

</wfs:GetFeature>

 

I’m getting the following message:

 

WFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature

 

Thanks,

 

Mike

 



This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Exelis Inc. The recipient should check this e-mail and any attachments for the presence of viruses. Exelis Inc. accepts no liability for any damage caused by any virus transmitted by this e-mail.


_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Reply | Threaded
Open this post in threaded view
|

Re: Unsupported Filter

Even Rouault-2
Le jeudi 30 octobre 2014 18:55:03, Farwell, Michael D - Exelis a écrit :

> Rahkonen,
>
> Thanks for an actual working query.
>
> Turns out it was the style of the coordinates.
>
> <gml:coord><gml:X>-59.0</gml:X><gml:Y>-35.0</gml:Y></gml:coord><gml:coord><
> gml:X>-58.0</gml:X><gml:Y>-34.0</gml:Y></gml:coord> Vs.
> <gml:coordinates cs="," decimal="." ts=" ">-59,-35
> -58,-34</gml:coordinates>
>
> Unfortunately, GeoTools formulates the request as X,Y.  There may be a way
> to override this behavior.

Mike,

Digging a bit, I see that I added this test case during the development of WFS
2.0. I don't remember if I fixed something in that area, or if it was
introduced before, but anyway this should be supported now with the 7.0dev
version :

# Verify BBOX Result with <Box><coord><X> </X><Y> </Y></coord><coord><X>
</X><Y> </Y></coord></Box>
# RUN_PARMS: wfs_filter_bbox_old_fashion.xml [MAPSERV]
QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=popplace&FILTER=<Filter><BBOX><PropertyName>POINT</PropertyName><Box+srsName=%22urn:ogc:def:crs:EPSG:26920%22><coord><X>272868.16</X><Y>4938053.09</Y></coord><coord><X>281261.3</X><Y>4951109.39</Y></coord></Box></BBOX></Filter>"
> [RESULT]

Did you check if there was a way to make GeoTools use WFS 1.1 style BBOX ?
Should be better supported that this anciant way of expressing GML box.

Even

>
> Thanks for your help.
>
> Mike
>
>
> From: Rahkonen Jukka (Tike) [mailto:[hidden email]]
> Sent: Thursday, October 30, 2014 12:20 PM
> To: Farwell, Michael D - Exelis; 'Lime, Steve D (MNIT)';
> '[hidden email]' Subject: Re: Unsupported Filter
>
> Hi,
>
> I did not study why it does not work but here is a complete GetFeature POST
> with BBOX filter that works. Compare with yours and report what makes the
> difference.
>
> POST http://demo.mapserver.org/cgi-bin/wfs HTTP/1.1
> Content-Type: text/xml
> User-Agent: Jakarta Commons-HttpClient/3.0-beta1
> Host: demo.mapserver.org
> Proxy-Connection: Keep-Alive
> Content-Length: 835
>
> <wfs:GetFeature service="WFS" version="1.0.0"
> xmlns:wfs="http://www.opengis.net/wfs"
> xmlns:ogc="http://www.opengis.net/ogc"
> xmlns:gml="http://www.opengis.net/gml"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.opengis.net/wfs
> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd<http://www.opengis.net/
> wfs%20http:/schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd>"
> maxFeatures="1000" outputFormat="GML2"><wfs:Query
> typeName="cities"><ogc:PropertyName>NAME</ogc:PropertyName><ogc:PropertyNa
> me>POPULATION</ogc:PropertyName><ogc:PropertyName>msGeometry</ogc:PropertyN
> ame><ogc:Filter><ogc:BBOX><ogc:PropertyName>msGeometry</ogc:PropertyName><g
> ml:Box xmlns:gml="http://www.opengis.net/gml"><gml:coordinates cs=","
> decimal="." ts=" ">-56.020765027322405,-4.650424681845783
> -36.836187006678806,25.4390713715847</gml:coordinates></gml:Box></ogc:BBOX
> ></ogc:Filter></wfs:Query></wfs:GetFeature>
>
>
> -Jukka Rahkonen-
>
>
> Lähettäjä:
> [hidden email]<mailto:[hidden email]
> sgeo.org> [mailto:[hidden email]] Puolesta Farwell,
> Michael D - Exelis Lähetetty: 30. lokakuuta 2014 17:42
> Vastaanottaja: Lime, Steve D (MNIT);
> [hidden email]<mailto:[hidden email]> Aihe:
> Re: [mapserver-dev] Unsupported Filter
>
> Steve,
>
> Thanks for the reply.
>
> I'm having the same issue with an internal 6.x mapserver, so I tried the
> demo server.  Are you aware of other publicly available mapservers that
> could be used for minimal testing.
>
> Mike
>
> From: Lime, Steve D (MNIT) [mailto:[hidden email]]
> Sent: Thursday, October 30, 2014 11:38 AM
> To: Farwell, Michael D - Exelis;
> [hidden email]<mailto:[hidden email]>
> Subject: RE: Unsupported Filter
>
> That's a 5.6.5 server. I wonder if newer versions have the same limitation.
>
> From:
> [hidden email]<mailto:[hidden email]
> sgeo.org> [mailto:[hidden email]] On Behalf Of
> Farwell, Michael D - Exelis Sent: Thursday, October 30, 2014 10:23 AM
> To: [hidden email]<mailto:[hidden email]>
> Subject: [mapserver-dev] Unsupported Filter
>
> Mapserver dev,
>
> Does anyone know why the UMN demo map server does not support the following
> WFS 1.0.0 post request?:
>
> curl -X POST
> 'http://demo.mapserver.org/cgi-bin/wfs?REQUEST=GetFeature&VERSION=1.0.0&SE
> RVICE=WFS' -d @/tmp/post.xml -H 'Content-Type: application/xml' -k
>
> Where /tmp/post.xml contains:
>
> <?xml version="1.0" encoding="UTF-8"?><wfs:GetFeature
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
> xmlns:ogc="http://www.opengis.net/ogc"
> xmlns:wfs="http://www.opengis.net/wfs"
> xmlns:gml="http://www.opengis.net/gml" handle="GeoTools
> 13-SNAPSHOT(f758d2e99d6008f6a27438946de5ef914960f605) WFS 1.0.0 DataStore
> @localhost.localdomain#1" maxFeatures="10" outputFormat="GML2"
> service="WFS" version="1.0.0"> <wfs:Query typeName="ms:cities">
>   <ogc:PropertyName>POPULATION</ogc:PropertyName>
>   <ogc:Filter>
>    <ogc:BBOX>
>     <ogc:PropertyName>msGeometry</ogc:PropertyName>
>     <gml:Box srsName="urn:x-ogc:def:crs:EPSG:4326">
>      <gml:coord>
>       <gml:X>-59.0</gml:X>
>       <gml:Y>-35.0</gml:Y>
>      </gml:coord>
>      <gml:coord>
>       <gml:X>-58.0</gml:X>
>       <gml:Y>-34.0</gml:Y>
>      </gml:coord>
>     </gml:Box>
>    </ogc:BBOX>
>   </ogc:Filter>
> </wfs:Query>
> </wfs:GetFeature>
>
> I'm getting the following message:
>
> WFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in
> GetFeature
>
> Thanks,
>
> Mike
>
> ________________________________
>
> This e-mail and any files transmitted with it may be proprietary and are
> intended solely for the use of the individual or entity to whom they are
> addressed. If you have received this e-mail in error please notify the
> sender. Please note that any views or opinions presented in this e-mail
> are solely those of the author and do not necessarily represent those of
> Exelis Inc. The recipient should check this e-mail and any attachments for
> the presence of viruses. Exelis Inc. accepts no liability for any damage
> caused by any virus transmitted by this e-mail.

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Reply | Threaded
Open this post in threaded view
|

Re: Unsupported Filter

Farwell, Michael D - Exelis
Even,

GeoTools uses the following envelope for WFS 1.1:

<ogc:BBOX>
    <ogc:PropertyName>msGeometry</ogc:PropertyName>
    <gml:Envelope srsDimension="2" srsName="urn:x-ogc:def:crs:EPSG:4326">
     <gml:lowerCorner>-59.0 -35.0</gml:lowerCorner>
     <gml:upperCorner>-58.0 -34.0</gml:upperCorner>
    </gml:Envelope>
</ogc:BBOX>

Mike

-----Original Message-----
From: Even Rouault [mailto:[hidden email]]
Sent: Thursday, October 30, 2014 2:06 PM
To: [hidden email]
Cc: Farwell, Michael D - Exelis
Subject: Re: [mapserver-dev] Unsupported Filter

Le jeudi 30 octobre 2014 18:55:03, Farwell, Michael D - Exelis a écrit :

> Rahkonen,
>
> Thanks for an actual working query.
>
> Turns out it was the style of the coordinates.
>
> <gml:coord><gml:X>-59.0</gml:X><gml:Y>-35.0</gml:Y></gml:coord><gml:co
> ord>< gml:X>-58.0</gml:X><gml:Y>-34.0</gml:Y></gml:coord> Vs.
> <gml:coordinates cs="," decimal="." ts=" ">-59,-35
> -58,-34</gml:coordinates>
>
> Unfortunately, GeoTools formulates the request as X,Y.  There may be a
> way to override this behavior.

Mike,

Digging a bit, I see that I added this test case during the development of WFS 2.0. I don't remember if I fixed something in that area, or if it was introduced before, but anyway this should be supported now with the 7.0dev version :

# Verify BBOX Result with <Box><coord><X> </X><Y> </Y></coord><coord><X> </X><Y> </Y></coord></Box> # RUN_PARMS: wfs_filter_bbox_old_fashion.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=popplace&FILTER=<Filter><BBOX><PropertyName>POINT</PropertyName><Box+srsName=%22urn:ogc:def:crs:EPSG:26920%22><coord><X>272868.16</X><Y>4938053.09</Y></coord><coord><X>281261.3</X><Y>4951109.39</Y></coord></Box></BBOX></Filter>"
> [RESULT]

Did you check if there was a way to make GeoTools use WFS 1.1 style BBOX ?
Should be better supported that this anciant way of expressing GML box.

Even

>
> Thanks for your help.
>
> Mike
>
>
> From: Rahkonen Jukka (Tike) [mailto:[hidden email]]
> Sent: Thursday, October 30, 2014 12:20 PM
> To: Farwell, Michael D - Exelis; 'Lime, Steve D (MNIT)';
> '[hidden email]' Subject: Re: Unsupported Filter
>
> Hi,
>
> I did not study why it does not work but here is a complete GetFeature
> POST with BBOX filter that works. Compare with yours and report what
> makes the difference.
>
> POST http://demo.mapserver.org/cgi-bin/wfs HTTP/1.1
> Content-Type: text/xml
> User-Agent: Jakarta Commons-HttpClient/3.0-beta1
> Host: demo.mapserver.org
> Proxy-Connection: Keep-Alive
> Content-Length: 835
>
> <wfs:GetFeature service="WFS" version="1.0.0"
> xmlns:wfs="http://www.opengis.net/wfs"
> xmlns:ogc="http://www.opengis.net/ogc"
> xmlns:gml="http://www.opengis.net/gml"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.opengis.net/wfs
> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd<http://www.opengis.
> net/ wfs%20http:/schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd>"
> maxFeatures="1000" outputFormat="GML2"><wfs:Query
> typeName="cities"><ogc:PropertyName>NAME</ogc:PropertyName><ogc:Proper
> tyNa
> me>POPULATION</ogc:PropertyName><ogc:PropertyName>msGeometry</ogc:Prop
> me>ertyN
> ame><ogc:Filter><ogc:BBOX><ogc:PropertyName>msGeometry</ogc:PropertyNa
> ame>me><g
> ml:Box xmlns:gml="http://www.opengis.net/gml"><gml:coordinates cs=","
> decimal="." ts=" ">-56.020765027322405,-4.650424681845783
> -36.836187006678806,25.4390713715847</gml:coordinates></gml:Box></ogc:
> BBOX
> ></ogc:Filter></wfs:Query></wfs:GetFeature>
>
>
> -Jukka Rahkonen-
>
>
> Lähettäjä:
> [hidden email]<mailto:mapserver-dev-bounces@lis
> ts.o sgeo.org> [mailto:[hidden email]] Puolesta
> Farwell, Michael D - Exelis Lähetetty: 30. lokakuuta 2014 17:42
> Vastaanottaja: Lime, Steve D (MNIT);
> [hidden email]<mailto:[hidden email]> Aihe:
> Re: [mapserver-dev] Unsupported Filter
>
> Steve,
>
> Thanks for the reply.
>
> I'm having the same issue with an internal 6.x mapserver, so I tried
> the demo server.  Are you aware of other publicly available mapservers
> that could be used for minimal testing.
>
> Mike
>
> From: Lime, Steve D (MNIT) [mailto:[hidden email]]
> Sent: Thursday, October 30, 2014 11:38 AM
> To: Farwell, Michael D - Exelis;
> [hidden email]<mailto:[hidden email]>
> Subject: RE: Unsupported Filter
>
> That's a 5.6.5 server. I wonder if newer versions have the same limitation.
>
> From:
> [hidden email]<mailto:mapserver-dev-bounces@lis
> ts.o sgeo.org> [mailto:[hidden email]] On
> Behalf Of Farwell, Michael D - Exelis Sent: Thursday, October 30, 2014
> 10:23 AM
> To:
> [hidden email]<mailto:[hidden email]>
> Subject: [mapserver-dev] Unsupported Filter
>
> Mapserver dev,
>
> Does anyone know why the UMN demo map server does not support the
> following WFS 1.0.0 post request?:
>
> curl -X POST
> 'http://demo.mapserver.org/cgi-bin/wfs?REQUEST=GetFeature&VERSION=1.0.
> 0&SE RVICE=WFS' -d @/tmp/post.xml -H 'Content-Type: application/xml'
> -k
>
> Where /tmp/post.xml contains:
>
> <?xml version="1.0" encoding="UTF-8"?><wfs:GetFeature
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
> xmlns:ogc="http://www.opengis.net/ogc"
> xmlns:wfs="http://www.opengis.net/wfs"
> xmlns:gml="http://www.opengis.net/gml" handle="GeoTools
> 13-SNAPSHOT(f758d2e99d6008f6a27438946de5ef914960f605) WFS 1.0.0
> DataStore @localhost.localdomain#1" maxFeatures="10" outputFormat="GML2"
> service="WFS" version="1.0.0"> <wfs:Query typeName="ms:cities">
>   <ogc:PropertyName>POPULATION</ogc:PropertyName>
>   <ogc:Filter>
>    <ogc:BBOX>
>     <ogc:PropertyName>msGeometry</ogc:PropertyName>
>     <gml:Box srsName="urn:x-ogc:def:crs:EPSG:4326">
>      <gml:coord>
>       <gml:X>-59.0</gml:X>
>       <gml:Y>-35.0</gml:Y>
>      </gml:coord>
>      <gml:coord>
>       <gml:X>-58.0</gml:X>
>       <gml:Y>-34.0</gml:Y>
>      </gml:coord>
>     </gml:Box>
>    </ogc:BBOX>
>   </ogc:Filter>
> </wfs:Query>
> </wfs:GetFeature>
>
> I'm getting the following message:
>
> WFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in
> GetFeature
>
> Thanks,
>
> Mike
>
> ________________________________
>
> This e-mail and any files transmitted with it may be proprietary and
> are intended solely for the use of the individual or entity to whom
> they are addressed. If you have received this e-mail in error please
> notify the sender. Please note that any views or opinions presented in
> this e-mail are solely those of the author and do not necessarily
> represent those of Exelis Inc. The recipient should check this e-mail
> and any attachments for the presence of viruses. Exelis Inc. accepts
> no liability for any damage caused by any virus transmitted by this e-mail.

--
Spatialys - Geospatial professional services http://www.spatialys.com
_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Reply | Threaded
Open this post in threaded view
|

Re: Unsupported Filter

Rahkonen Jukka (Tike)
Hi,

Geoserver v. 2.6 is the first one that is using a brand new WFS-ng store by default. If possible I suggest to test with it. Not only because it is not so extensively tested yet and it would be nice to get feedback but also because it is the one which has future.

I do not remember older versions but this one has a selection for "WFS Protocol strategy" and there is also "mapserver" in the drop down menu. If Mapserver does not like the filters which are generated in this mode it is definitely a bug and at least worth reporting in geoserver-users mailing list.

-Jukka Rahkonen-



Farwell, Michael D - Exelis wrote:

Even,

GeoTools uses the following envelope for WFS 1.1:

<ogc:BBOX>
    <ogc:PropertyName>msGeometry</ogc:PropertyName>
    <gml:Envelope srsDimension="2" srsName="urn:x-ogc:def:crs:EPSG:4326">
     <gml:lowerCorner>-59.0 -35.0</gml:lowerCorner>
     <gml:upperCorner>-58.0 -34.0</gml:upperCorner>
    </gml:Envelope>
</ogc:BBOX>

Mike

-----Original Message-----
From: Even Rouault [mailto:[hidden email]]
Sent: Thursday, October 30, 2014 2:06 PM
To: [hidden email]
Cc: Farwell, Michael D - Exelis
Subject: Re: [mapserver-dev] Unsupported Filter

Le jeudi 30 octobre 2014 18:55:03, Farwell, Michael D - Exelis a écrit :

> Rahkonen,
>
> Thanks for an actual working query.
>
> Turns out it was the style of the coordinates.
>
> <gml:coord><gml:X>-59.0</gml:X><gml:Y>-35.0</gml:Y></gml:coord><gml:co
> ord>< gml:X>-58.0</gml:X><gml:Y>-34.0</gml:Y></gml:coord> Vs.
> <gml:coordinates cs="," decimal="." ts=" ">-59,-35
> -58,-34</gml:coordinates>
>
> Unfortunately, GeoTools formulates the request as X,Y.  There may be a
> way to override this behavior.

Mike,

Digging a bit, I see that I added this test case during the development of WFS 2.0. I don't remember if I fixed something in that area, or if it was introduced before, but anyway this should be supported now with the 7.0dev version :

# Verify BBOX Result with <Box><coord><X> </X><Y> </Y></coord><coord><X> </X><Y> </Y></coord></Box> # RUN_PARMS: wfs_filter_bbox_old_fashion.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=popplace&FILTER=<Filter><BBOX><PropertyName>POINT</PropertyName><Box+srsName=%22urn:ogc:def:crs:EPSG:26920%22><coord><X>272868.16</X><Y>4938053.09</Y></coord><coord><X>281261.3</X><Y>4951109.39</Y></coord></Box></BBOX></Filter>"
> [RESULT]

Did you check if there was a way to make GeoTools use WFS 1.1 style BBOX ?
Should be better supported that this anciant way of expressing GML box.

Even

>
> Thanks for your help.
>
> Mike
>
>
> From: Rahkonen Jukka (Tike) [mailto:[hidden email]]
> Sent: Thursday, October 30, 2014 12:20 PM
> To: Farwell, Michael D - Exelis; 'Lime, Steve D (MNIT)';
> '[hidden email]' Subject: Re: Unsupported Filter
>
> Hi,
>
> I did not study why it does not work but here is a complete GetFeature
> POST with BBOX filter that works. Compare with yours and report what
> makes the difference.
>
> POST http://demo.mapserver.org/cgi-bin/wfs HTTP/1.1
> Content-Type: text/xml
> User-Agent: Jakarta Commons-HttpClient/3.0-beta1
> Host: demo.mapserver.org
> Proxy-Connection: Keep-Alive
> Content-Length: 835
>
> <wfs:GetFeature service="WFS" version="1.0.0"
> xmlns:wfs="http://www.opengis.net/wfs"
> xmlns:ogc="http://www.opengis.net/ogc"
> xmlns:gml="http://www.opengis.net/gml"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.opengis.net/wfs
> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd<http://www.opengis.
> net/ wfs%20http:/schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd>"
> maxFeatures="1000" outputFormat="GML2"><wfs:Query
> typeName="cities"><ogc:PropertyName>NAME</ogc:PropertyName><ogc:Proper
> tyNa
> me>POPULATION</ogc:PropertyName><ogc:PropertyName>msGeometry</ogc:Prop
> me>ertyN
> ame><ogc:Filter><ogc:BBOX><ogc:PropertyName>msGeometry</ogc:PropertyNa
> ame>me><g
> ml:Box xmlns:gml="http://www.opengis.net/gml"><gml:coordinates cs=","
> decimal="." ts=" ">-56.020765027322405,-4.650424681845783
> -36.836187006678806,25.4390713715847</gml:coordinates></gml:Box></ogc:
> BBOX
> ></ogc:Filter></wfs:Query></wfs:GetFeature>
>
>
> -Jukka Rahkonen-
>
>
> Lähettäjä:
> [hidden email]<mailto:mapserver-dev-bounces@lis
> ts.o sgeo.org> [mailto:[hidden email]] Puolesta
> Farwell, Michael D - Exelis Lähetetty: 30. lokakuuta 2014 17:42
> Vastaanottaja: Lime, Steve D (MNIT);
> [hidden email]<mailto:[hidden email]> Aihe:
> Re: [mapserver-dev] Unsupported Filter
>
> Steve,
>
> Thanks for the reply.
>
> I'm having the same issue with an internal 6.x mapserver, so I tried
> the demo server.  Are you aware of other publicly available mapservers
> that could be used for minimal testing.
>
> Mike
>
> From: Lime, Steve D (MNIT) [mailto:[hidden email]]
> Sent: Thursday, October 30, 2014 11:38 AM
> To: Farwell, Michael D - Exelis;
> [hidden email]<mailto:[hidden email]>
> Subject: RE: Unsupported Filter
>
> That's a 5.6.5 server. I wonder if newer versions have the same limitation.
>
> From:
> [hidden email]<mailto:mapserver-dev-bounces@lis
> ts.o sgeo.org> [mailto:[hidden email]] On
> Behalf Of Farwell, Michael D - Exelis Sent: Thursday, October 30, 2014
> 10:23 AM
> To:
> [hidden email]<mailto:[hidden email]>
> Subject: [mapserver-dev] Unsupported Filter
>
> Mapserver dev,
>
> Does anyone know why the UMN demo map server does not support the
> following WFS 1.0.0 post request?:
>
> curl -X POST
> 'http://demo.mapserver.org/cgi-bin/wfs?REQUEST=GetFeature&VERSION=1.0.
> 0&SE RVICE=WFS' -d @/tmp/post.xml -H 'Content-Type: application/xml'
> -k
>
> Where /tmp/post.xml contains:
>
> <?xml version="1.0" encoding="UTF-8"?><wfs:GetFeature
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
> xmlns:ogc="http://www.opengis.net/ogc"
> xmlns:wfs="http://www.opengis.net/wfs"
> xmlns:gml="http://www.opengis.net/gml" handle="GeoTools
> 13-SNAPSHOT(f758d2e99d6008f6a27438946de5ef914960f605) WFS 1.0.0
> DataStore @localhost.localdomain#1" maxFeatures="10" outputFormat="GML2"
> service="WFS" version="1.0.0"> <wfs:Query typeName="ms:cities">
>   <ogc:PropertyName>POPULATION</ogc:PropertyName>
>   <ogc:Filter>
>    <ogc:BBOX>
>     <ogc:PropertyName>msGeometry</ogc:PropertyName>
>     <gml:Box srsName="urn:x-ogc:def:crs:EPSG:4326">
>      <gml:coord>
>       <gml:X>-59.0</gml:X>
>       <gml:Y>-35.0</gml:Y>
>      </gml:coord>
>      <gml:coord>
>       <gml:X>-58.0</gml:X>
>       <gml:Y>-34.0</gml:Y>
>      </gml:coord>
>     </gml:Box>
>    </ogc:BBOX>
>   </ogc:Filter>
> </wfs:Query>
> </wfs:GetFeature>
>
> I'm getting the following message:
>
> WFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in
> GetFeature
>
> Thanks,
>
> Mike
>
> ________________________________
>
> This e-mail and any files transmitted with it may be proprietary and
> are intended solely for the use of the individual or entity to whom
> they are addressed. If you have received this e-mail in error please
> notify the sender. Please note that any views or opinions presented in
> this e-mail are solely those of the author and do not necessarily
> represent those of Exelis Inc. The recipient should check this e-mail
> and any attachments for the presence of viruses. Exelis Inc. accepts
> no liability for any damage caused by any virus transmitted by this e-mail.

--
Spatialys - Geospatial professional services http://www.spatialys.com
_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev