Functions are published as part of DefaultFuntionFactory using the following workflow:
Factory.getImplementationHints()used used to review the hints that are supported by the function implementation.
setParameters(List)is used to supply the argument expressions.
setFallbackValue(Literal)is used to supply a placeholder Literal to be used if the function implementation is not available
If you have a large number of related functions consider the use of
|Modifier and Type||Method and Description|
Fallback value to use in the event the function is unavailable in the requested environment.
Sets the Parameters for the function.
void setFallbackValue(Literal fallback)
The fallback value is not provided as one of the arguments, as it is an advanced option used in style layer descriptor documents to facilitate interoperability. It allows a user to specify an SQL function, and provide a value to use when the documented is used with a WFS that does not support the provided function.
Copyright © 1996–2020 Geotools. All rights reserved.