No. You can use any CQL expression in most CSS properties (a few, such as
"z-index", which do not directly correspond to SLD properties, do not allow
dynamic expressions.) Any geoserver filter function is available in such
expressions. So, for example, the polygon fill example from the SLD docs
becomes:
* {
fill: [Recode(strTrim(SUB_REGION),
'N Eng',
'#6495ED',
'Mid Atl',
'#B0C4DE',
'S Atl',
'#00FFFF',
'E N Cen',
'#9ACD32',
'E S Cen',
'#00FA9A',
'W N Cen',
'#FFF8DC',
'W S Cen',
'#F5DEB3',
'Mtn',
'#F4A460',
'Pacific', '#87CEEB')];
}
On Fri, May 16, 2014 at 6:02 AM, David Collins <[email protected]>wrote:
> They look very useful. Are there any examples in doco, etc. of using
> these 3 functions in CSS Styling ?
>
> On Thu, May 15, 2014 at 8:11 PM, Andrea Aime <[email protected]
> > wrote:
>
>> On Thu, May 15, 2014 at 12:02 PM, Simon Hartley
>> <[email protected]>wrote:
>>
>>> Thanks: I hadn’t noticed that page before:
>>>
>>>
>>> http://docs.geoserver.org/latest/en/user/styling/sld-tipstricks/transformation-func.html
>>>
>>
>> Btw, these functions can also be used in CSS to further reduce its size
>>
>> Cheers
>> Andrea
>>
>>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
David Winslow
Boundless - http://boundlessgeo.com/
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users