I'm a new user of GeoServer. I need to create a custom filter function, but
the information I have found seems to all be for GeoTools. Being a newbie,
it's not clear to me if this applies to GeoServer as well. If anyone can
point me to some clear instructions or tutorial no creating a custom filter
function for GeoServer it would be greatly appreciated.
On Tue, Jun 25, 2013 at 4:27 PM, brking <brking@anonymised.com> wrote:
I'm a new user of GeoServer. I need to create a custom filter function, but
the information I have found seems to all be for GeoTools. Being a newbie,
it's not clear to me if this applies to GeoServer as well. If anyone can
point me to some clear instructions or tutorial no creating a custom filter
function for GeoServer it would be greatly appreciated.
Just do it like GeoTools says then drop in the jar in WEB-INF, restart
the web container and the new filter function should be available to
GeoServer,
quick way to confirm is to see if it's being listed in the WFS capabilities
document
There are no GeoServer specific tutorials on how to do a custom filter
fuction...
well,unless there is anything from the new scripting modules, not sure,
cc'ing Justin,
he surely knows if there is something out there.
I'm sorry but I'm just not getting this. I created a new maven project, added
the Geotools references (9.3) and created a function class similar to this:
The code compiles fine. I then dropped the jar in a new META-INF folder
under the webapps/geoserver folder. It doesn't show up in any WFS
GetCapabilities calls for the sample layers.
- Does my jar need to go into a subfolder under META-INF ?
- There is a mention of a text file in the geotools factory tutorial that
goes under META-INF/services, but I don't see it. Does that need to be
created ?
Sorry it’s late but to answer the question about the scripting extension [1], it is possible to write a filter function using the extension, unfortunately its not documented yet
There are a few examples in the tests, these in javascript.
I’m sorry but I’m just not getting this. I created a new maven project, added
the Geotools references (9.3) and created a function class similar to this:
The code compiles fine. I then dropped the jar in a new META-INF folder
under the webapps/geoserver folder. It doesn’t show up in any WFS
GetCapabilities calls for the sample layers.
Does my jar need to go into a subfolder under META-INF ?
There is a mention of a text file in the geotools factory tutorial that
goes under META-INF/services, but I don’t see it. Does that need to be
created ?
Thank you Justin and Andrea. I finally got a Java filter function working and
registered based on the GeoTools info. The javascript mechanism looks easier
if I can get it working.