On Wed, Feb 9, 2011 at 5:03 PM, Fernando Barbat <fbar...@gmail.com> wrote:
> Hi,
>
> I'm using Geoserver 2.0.2. When using PropertyIsLike filter to style maps,
> it always ignore case. Here it is an example:
>
> <ogc:Filter>
>   <ogc:PropertyIsLike escapeChar="\" singleChar="_" wildCard="%">
>     <ogc:PropertyName>name</ogc:PropertyName>
>     <ogc:Literal>m%</ogc:Literal>
>   </ogc:PropertyIsLike>
> </ogc:Filter>
>
> I tried using the "matchCase" flag mentioned here but is ignored.
>
> I found I could use a filter function as a workaround. However, it requires
> the use of Java Regular Expressions, and I just want to have LIKE wildcards
> (not the full power of RegExs).
>
> Was it solved in 2.1RC?

Not sure. The sql encoding code sure takes into account the matchCase and
the in memory evaluation code used for shapefiles similarly respects
matchCase.

Ah, now I see, it's because it's SLD. Filter 1.0 has no notion of case matching,
not even in property is equal, and SLD 1.0 uses Filter 1.0 to express filters.
So it's normal it's not supported, though we could extend the parser to check
for matchcase as well (it would break sld validation though)

SLD 1.1, which has partial support in GS 2.1,  might be able to deal with
the matchcase. Just not sure, still haven't had time to try it out

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

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

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to