On Tue, Nov 23, 2010 at 8:56 AM, Jeremy HANOUN <[email protected]> wrote: > Guys, > > > > I may need your help on the following point. > > > > I need to add a function to apply on Geometry and wanted to know if this is > doable as a plugin.
It is > If so, I’ll be very pleased to have some information on how to do that. We don't have a guide but adding a function is easy enough that you can just see how it's done and replicate. Look at the GeoTools main module: http://svn.osgeo.org/geotools/trunk/modules/library/main/src/ this is where most of the function code is: http://svn.osgeo.org/geotools/trunk/modules/library/main/src/main/java/org/geotools/filter/function/ this is a simple date formatting function: http://svn.osgeo.org/geotools/trunk/modules/library/main/src/main/java/org/geotools/filter/function/FilterFunction_dateFormat.java To have them plug into GeoTools/GeoServer you also need to add a file in META-INF declaring the existance of the function, like this one: http://svn.osgeo.org/geotools/trunk/modules/library/main/src/main/resources/META-INF/services/org.opengis.filter.expression.Function Cheers Andrea ----------------------------------------------------- Ing. Andrea Aime Senior Software Engineer GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584962313 fax: +39 0584962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ----------------------------------------------------- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
