On Fri, Oct 15, 2010 at 4:02 PM, andrea antonello <[email protected]> wrote: > Hi all, I have seen this pass before, but none of the cases before > really applied to mine. So I wonder if someone can help me on this. > > I am simply reading a shapefile from groovy scripting language > (jgrasstools project) and since some time ago, when I did an update, I > started to have: > > Caused by: java.lang.RuntimeException: Unable to find function Length > at > org.geotools.filter.FunctionFinder.findFunction(FunctionFinder.java:103) > at > org.geotools.filter.FunctionFinder.findFunction(FunctionFinder.java:69)
It seems you're having problems with SPI. All functions are registered in the usual META-INF directory, maybe you're running inside Eclipse and there are issues with how the OSGi runtime treats the SPI files? The registration file in question is org.opengis.filter.expression.Function, inside the META-INF/services folder of the GeoTools main module Cheers Andrea > at > org.geotools.filter.FilterFactoryImpl.function(FilterFactoryImpl.java:467) > at > org.geotools.feature.AttributeTypeBuilder.lengthRestriction(AttributeTypeBuilder.java:624) > at > org.geotools.feature.AttributeTypeBuilder.buildType(AttributeTypeBuilder.java:455) > at > org.geotools.feature.AttributeTypeBuilder.buildDescriptor(AttributeTypeBuilder.java:516) > at > org.geotools.data.shapefile.ShapefileDataStore.readAttributes(ShapefileDataStore.java:811) > at > org.geotools.data.shapefile.ShapefileDataStore.getSchema(ShapefileDataStore.java:714) > at > org.geotools.data.AbstractFileDataStore.getFeatureSource(AbstractFileDataStore.java:75) > > I am running on 2.7-SNAPSHOT. > > Anyone an idea about what I might do wrong? > > Thanks, > Andrea > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel > > -- ----------------------------------------------------- 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 ----------------------------------------------------- ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
