On Tue, May 15, 2012 at 8:02 AM, Chris Haste <[email protected]> wrote:
> Hi All,****
>
> ** **
>
> I’m trying to get to grips with CQL…****
>
> ** **
>
> Could someone please tell me why this doesn’t work;****
>
> mark: symbol('ttf://ESRI Weather${strConcat("#0x00","EC"}');
>
If this is exactly what you have in your style then it is simply an invalid
CQL expression: you need to close the parentheses before you close your ${}
block:
mark: symbol('ttf://ESRI Weather${strConcat("#0x00","EC"*)*}');
By the way, strConcat is rarely, if ever, necessary in dynamic symbolizers.
Instead of ${strConcat(prefix, suffix)} you can use the more concise
${prefix}${suffix}. So I would write your example as:
mark: symbol('ttf://ESRI Weather${"#0x00"}${"EC"}');
There's one less level of nesting this way, and I think it's easier to
count the braces.
--
David Winslow
OpenGeo - http://opengeo.org/
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users