Hello,

Let's say that I have a polygon with a text attribute "attr" containing a
list of values separated by comma, like so for example : "1,15,19"

I would like to filter like so : if the attribute contains else the value 1
or 15 , then...

I tried using PropertyIsLike and escapeChar:

                                        <ogc:Filter>
                                                <ogc:Or>
                                                        <ogc:PropertyIsLike 
escapeChar=",">
                                                                
<ogc:PropertyName>attr</ogc:PropertyName>
                                                                
<ogc:Literal>1</ogc:Literal>
                                                        </ogc:PropertyIsLike>
                                                        <ogc:PropertyIsLike 
escapeChar=",">
                                                                
<ogc:PropertyName>attr</ogc:PropertyName>
                                                                
<ogc:Literal>15</ogc:Literal>
                                                        </ogc:PropertyIsLike>
                                                </ogc:Or>
                                        </ogc:Filter>

But it's not working. Any idea ?

Thank you



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Filtering-on-an-attribute-containing-list-of-values-tp5258310.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to