Hello list,
I want to filter all items where content of a character field is not "" or null, how can this be done? I have been searching the official SLD documentation and it is not documented.
Any help appreciated,
Kind regards,
Milo van der Linden
(This question is more appropriate for the users list, this is the developers list)
As for your question. You should be able to pull this off with the following filter functions:
<Or>
<PropertyIsEqualTo>
<Function name="isNull">
<PropertyName>foo</PropertyName>
</Function>
<Literal>true</Literal>
</PropertyIsEqualTo>
<PropertyIsEqualTo>
<Function name="strLength">
<PropertyName>foo</PropertyName>
</Function>
<Literal>0</Literal>
</PropertyIsEqualTo>
</Or>
Let us know if that works.
-Justin
Milo van der Linden wrote:
Hello list,
I want to filter all items where content of a character field is not "" or null, how can this be done? I have been searching the official SLD documentation and it is not documented.
Any help appreciated,
Kind regards,
Milo van der Linden
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
!DSPAM:4007,47e89a6a135671804284693!
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com