[Geoserver-users] WMS and WFS requests case insensitive

Hi list,

Is it possible to send case insensitive WMS/WMF requests with Geoserver ?
I have tried the following request, with matchCase=“false”, and it doesn’t work !

Regards

http://localhost:8080/geoserver/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=topp:localisant&FILTER=(%3CFilter%3E%3CAnd%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Ecode_dep%3C/PropertyName%3E%3CLiteral%3E66%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3CPropertyIsEqualTo%3E%3CPropertyNam e%3Enom_com%3C/PropertyName%3E%3CLiteral%3ELes%20Angles%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Esection%3C/PropertyName%3E%3CLiteral%3EAH%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Enumero%3C/PropertyName%3E%3CLiteral%3E0041%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/And%3E%3C/Filter%3E)

http://localhost:8080/geoserver/wfs
?SERVICE=WFS
&VERSION=1.0.0
&REQUEST=GetFeature
&TYPENAME=topp:localisant
&FILTER=(



code_dep
66


nom_com
Les Angles


section
AH


numero
0041


)

SAEZ Laurent - CETE Méditerr./DI/ETER ha scritto:

Hi list,

Is it possible to send case insensitive WMS/WMF requests with Geoserver ?
I have tried the following request, with matchCase="false", and it doesn't work !

Hum, the issue is complex. For WFS 1.0.0 it's actually not supposed
to work, WFS 1.0.0 refers to OGC Filter 1.0, which does expose a matchCase attribute for binary comparisons (so your request
is actually invalid, but apparently we're not doing a schema
validation against it, and just happily ignoring the matchCase
attribute).

WFS 1.1 uses Filter 1.1 instead, and there we have a matchCase attribute. However, having it honoured or not depends on the
underlying data store. At the moment to my knowledge only
ArcSDE and Shapefile do honour the attribute properly, all
the dbms based datastore instead fail to properly encode the
comparison into a sql case insensitive comparison (which
is not part of the sql standard, so has to be implemented using
DBMS prioprietary functions, which are different for each
DBMS).

Yet, mind, using WFS 1.1 will return data in GML3, not GML2,
and you'll eventually have to deal with the axis flipping
issue OGC kindly introduced for us (for more details see here:
http://geoserver.org/display/GEOSDOC/2.+WFS)

I've created a jira issue to avoid forgetting about this:
http://jira.codehaus.org/browse/GEOS-2251

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi,

A couple of questions. Which backend data source are you using? And which version of GeoServer? A bit more info will help in diagnosing the problem.

Just a note as well, that matchCase is a wfs 1.1 construct, while this is a wfs 1.0 requets. I am not 100% sure, i believe we support it for wfs 1.0 as well, but i need to double check that.

-Justin

SAEZ Laurent - CETE Méditerr./DI/ETER wrote:

Hi list,

Is it possible to send case insensitive WMS/WMF requests with Geoserver ?
I have tried the following request, with matchCase="false", and it doesn't work !

Regards

http://localhost:8080/geoserver/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=topp:localisant&FILTER=(%3CFilter%3E%3CAnd%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Ecode_dep%3C/PropertyName%3E%3CLiteral%3E66%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3CPropertyIsEqualTo%3E%3CPropertyNam e%3Enom_com%3C/PropertyName%3E%3CLiteral%3ELes%20Angles%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Esection%3C/PropertyName%3E%3CLiteral%3EAH%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Enumero%3C/PropertyName%3E%3CLiteral%3E0041%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/And%3E%3C/Filter%3E) <http://localhost:8080/geoserver/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=topp:localisant&FILTER=(<Filter><And><PropertyIsEqualTo><PropertyName>code_dep</PropertyName><Literal>66</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>nom_com</PropertyName><Literal>Les%20Angles</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>section</PropertyName><Literal>AH</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>numero</PropertyName><Literal>0041</Literal></PropertyIsEqualTo></And></Filter>)&gt;

http://localhost:8080/geoserver/wfs
?SERVICE=WFS
&VERSION=1.0.0
&REQUEST=GetFeature
&TYPENAME=topp:localisant
&FILTER=(
<Filter>
   <And>
       <PropertyIsEqualTo>
           <PropertyName>code_dep</PropertyName>
           <Literal>66</Literal>
       </PropertyIsEqualTo>
       <PropertyIsEqualTo matchCase="false">
           <PropertyName>nom_com</PropertyName>
           <Literal>Les Angles</Literal>
       </PropertyIsEqualTo>
       <PropertyIsEqualTo>
           <PropertyName>section</PropertyName>
           <Literal>AH</Literal>
       </PropertyIsEqualTo>
       <PropertyIsEqualTo>
           <PropertyName>numero</PropertyName>
           <Literal>0041</Literal>
       </PropertyIsEqualTo>
   </And>
</Filter>)

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.