If you are using maven to build the project then the META-INF folder needs
to go under the src/main/resources directory under the root of your
project. So your project should look like.
pom.xml
src/
main/
resources/
META-INF/
services/org.geotools.filter.FunctionFactory
If you're using geoserver and want an alternative you may want to check out
the scripting extension.
http://docs.geoserver.org/latest/en/user/community/scripting/overview.html
It allows you to write functions in other languages supported on the jvm
like groovy and python.
On Fri, Jan 16, 2015 at 3:06 AM, Bonventi Matthieu <
matthieu.bonve...@gmail.com> wrote:
> In the tutorial :
> http://docs.geotools.org/latest/userguide/tutorial/function.html
>
> Where do I have to put the file
>
> - META_INF/services/org.geotools.filter.FunctionFactory
>
> ? at the root of the project ? in the org/geotools/tutorial/function
> folder ?
>
> Do I have to create a file named org.geotools.filter.FunctionFactory ? or
> create META_INF/services/org/geotools/filter/FunctionFactory.txt ?
>
> 2015-01-15 16:31 GMT+01:00 Jody Garnett <jody.garn...@gmail.com>:
>
>> There is a function tutorial in the user guide.
>>
>>
>> http://docs.geotools.org/latest/userguide/tutorial/function.html
>>
>> Sounds like the key step you may if missed is registering your function
>> factory with service plugin interface ( a text file in your jar). It is
>> step 8 in the tutorial.
>>
>> Glad you enjoyed the process tutorial.
>> On Thu, Jan 15, 2015 at 1:36 AM Bonventi Matthieu <
>> matthieu.bonve...@gmail.com> wrote:
>>
>>> Hello everyone,
>>>
>>> I need to modifiy an existing function or create a new one in order to
>>> set dynamically color of a polygon with features as data input. I tried
>>> some things but I can't test them because I can't compile them. Well I can
>>> compile but the new function doesn't appear in geoserver functions list. I
>>> followed the same tutorial that allows to compile a new WPS process (I
>>> succeeded this one) but I guess there is maybe a way to declare the new
>>> function in geoserver and make it work.
>>>
>>> Since there aren't any tutorial on the internet which detail all the
>>> steps of the process maybe someone in the maillist could help me ?
>>>
>>> Thank you
>>>
>>> --
>>> Matthieu BONVENTI
>>> ------------------------------------------------------------
>>> ------------------
>>> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
>>> GigeNET is offering a free month of service with a new server in Ashburn.
>>> Choose from 2 high performing configs, both with 100TB of bandwidth.
>>> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
>>> http://p.sf.net/sfu/gigenet______________________________
>>> _________________
>>> GeoTools-Devel mailing list
>>> GeoTools-Devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>>>
>>
>
>
> --
> Matthieu BONVENTI
>
>
> ------------------------------------------------------------------------------
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> _______________________________________________
> GeoTools-Devel mailing list
> GeoTools-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
>
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel