Re: [Geotools-gt2-users] Chaining functions

2021-06-29 Thread Jody Garnett
It would be helpful to share andrea’s response to the email list also, this is a shared resource and we can all learn from the discussions here. As for including the user email list CC works, or using reply-to-all. I tend to use “reply to all” as the default for my email program because of partic

Re: [Geotools-gt2-users] Chaining functions

2021-06-28 Thread Peter Friess
Hi Jody, Thanks for your response. I already had received an answer from Andrea which helped me solve my problem. Please, see below. It seems I made a mistake when answering to the response from Andrea, as you did not get informed, that my problem was solved. I appreciate the work of all inv

Re: [Geotools-gt2-users] Chaining functions

2021-06-28 Thread Jody Garnett
I expect you can do what you need using an expression: Recode( modulo( strSubstringStart( attribute, ,3), 2), 0, '#FF'. 1, '#00GG00' ) If you are using YSLD for styling you can define this as a variable for reuse (for example polygon outline and fill): # define here define: &mycolor Reco

[Geotools-gt2-users] Chaining functions

2021-06-26 Thread Peter Friess
Hi There, I was wondering if there exists a way of combining several functions into one. I mean, that I can use the result of one function as input parameter into the next function etc., kind of chaining functions. Concrete: I have a feature which has among others a String attribute which loo