Re: [Geotools-gt2-users] fallback/default value for Recode

2018-04-26 Thread Jody Garnett
Checking ... 11.6 Symbology Encoding Functions *The value of the fallbackValue attribute is used as a default value, if the SE implementation does not support the function. If the implementation supports the function, then the result value is determined by executing the function.* -- Jody Garnet

Re: [Geotools-gt2-users] fallback/default value for Recode

2018-04-10 Thread Andrea Aime
Il lun 9 apr 2018, 20:54 Jody Garnett onment. > > GeoTools FunctionFinder provides ability to set fallback > > : > >Function function = finder.findFunction( "Recode", List, > fallback ); > > It was tempting to

Re: [Geotools-gt2-users] fallback/default value for Recode

2018-04-09 Thread Raif S. Naffah
thanks Jody for taking the time to respond! i was indeed thinking of a new function but as a variant to Recode w/ an extra parameter at the end of key-value pairs for the 'default' case; e.g. C9 4 #FF9900 5 #CC9933 ... 10 #00 #FF making this last

Re: [Geotools-gt2-users] fallback/default value for Recode

2018-04-09 Thread Jody Garnett
Sadly the function returns null if the lookup does not have a match, see evaluate method . I think your solution is fine, although it does require a lot of du