Hi Andrea,

I know it has been a very long time since this question came up and you
answered it, but I have a question about this topic.

I want to set a CQL filter in GeoServer which compares a date-attribute i.e.
DATE_COL to /now/, with /now/ being a Java function. Very much like this:
DATE_COL > getDateNow()

In your answer to the OP you wrote that it's quite simple:


geowolf wrote
> It's really just:
> 1) create the function, e.g.
> https://github.com/geotools/geotools/blob/master/modules/library/main/src/main/java/org/geotools/filter/function/string/ConcatenateFunction.java
> 2) register the function in SPI, eg.:
> https://github.com/geotools/geotools/blob/master/modules/library/main/src/main/resources/META-INF/services/org.opengis.filter.expression.Function#L168
> 
> You just create a jar with those two files, drop it in GeoServer, and you
> get the extra function available to SLD, WFS and so on

I have two questions about this:
1. What do you mean with registering the function in SPI?
2. Which two files do you need to create a jar?



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to