I'm not sure if this is the right place to as.

I tried to create a style using a regex to match the values in a postgis 
table.

I wrote the following:

<ogc:PropertyIsEqualTo>
  <ogc:Function name="strMatches">                                      
   <ogc:PropertyName>tags</ogc:PropertyName>
     <ogc:Literal>\b(15|3|8)\b</ogc:Literal>
   </ogc:Function>
  <ogc:Literal>true</ogc:Literal>
</ogc:PropertyIsEqualTo>

The field "tags" is a varchar and the values in it are integers 
separated by a comma:
6,4
8,16,3
42,15
9

If one of the numbers matches 15, 3 or 8 the function should return true.
The regex works on a test site but it doesn't work on my sld.

I'm don't know if the regex is managed by geoserver/java or is passed to 
postgis/posgresql.
In postgresql \b is not used, I had to use another expression in a query.

Any help?

thank you

   maxx

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to