I have generated the xml from Openlayers for a WFS getfeature request with the 
matchCase option set to true. It looks like this:
                                                <PropertyIsEqualTo 
matchCase="true">
                                                                
<PropertyName>ROUTE_ID</PropertyName>
                                                                
<Literal>50927952</Literal>
                                                </PropertyIsEqualTo>

Hopefully this helps,  admittedly it does not have any alpha characters, but it 
works

Cheers,
Graham
From: Olivier Gagnon <mcno...@hotmail.com>
Sent: Thursday, 20 January 2022 2:56 AM
To: GeoServer Users <geoserver-users@lists.sourceforge.net>
Subject: [Geoserver-users] matchCase

Hi there,

I'm trying to use the attribute "matchCase" with filter PropertyIsEqualTo in a 
WFS GetFeature request.

In the body of the WFS request :

<ogc:PropertyIsEqualTo matchCase="false">

I get this exception :

java.lang.RuntimeException: Parsing failed for PropertyIsEqualTo: 
java.lang.classCastException: java.lang.String cannot be cast to 
java.lang.Boolean

I tried without quotes, with single quotes, on 2.14, 2.17 to no avail

The request works without the attribute matchCase but, I'd like to perform case 
insensitive requests.

Thanks







Envoyé à partir 
d'Outlook<https://aus01.safelinks.protection.outlook.com/?url=http%3A%2F%2Faka.ms%2Fweboutlook&data=04%7C01%7Cgraham.humphries%40stategrowth.tas.gov.au%7C6c5d26a6e1f44847c54e08d9db6468c7%7C64ebab8accf44b5ca2d32b4e972d96b2%7C0%7C0%7C637782046578371385%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=WElp3h8UANXD%2FlsAaqhZkTmOq1DIDr07%2FCfsvuV2RGg%3D&reserved=0>

________________________________

CONFIDENTIALITY NOTICE AND DISCLAIMER
The information in this transmission may be confidential and/or protected by 
legal professional privilege, and is intended only for the person or persons to 
whom it is addressed. If you are not such a person, you are warned that any 
disclosure, copying or dissemination of the information is unauthorised. If you 
have received the transmission in error, please immediately contact this office 
by telephone, fax or email, to inform us of the error and to enable 
arrangements to be made for the destruction of the transmission, or its return 
at our cost. No liability is accepted for any unauthorised use of the 
information contained in this transmission.
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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

Reply via email to