Hi folks,

I've just been testing the shapefile tutorial code and keep hitting an
error when trying to open a very simple shapefile that I previously
created with Geotools.  I'm using 2.6 trunk

The error occurs in FilterFactoryImpl.java in this method...

public PropertyIsLessThanOrEqualTo lessOrEqual(Expression expr1,
Expression expr2) {
        return new IsLessThenOrEqualToImpl(this,expr1,expr2);
}

The error msg is:
You chose to open this file: Road.shp
Reading content Road
Exception in thread "main" java.lang.NoSuchMethodError:
org.geotools.filter.IsLessThenOrEqualToImpl.<init>(Lorg/geotools/filter/FilterFactory;Lorg/opengis/filter/expression/Expression;Lorg/opengis/filter/expression/Expression;)V
        at 
org.geotools.filter.FilterFactoryImpl.lessOrEqual(FilterFactoryImpl.java:215)
        at 
org.geotools.feature.AttributeTypeBuilder.lengthRestriction(AttributeTypeBuilder.java:630)
        at 
org.geotools.feature.AttributeTypeBuilder.buildType(AttributeTypeBuilder.java:454)
        at 
org.geotools.feature.AttributeTypeBuilder.buildDescriptor(AttributeTypeBuilder.java:515)
        at 
org.geotools.data.shapefile.ShapefileDataStore.readAttributes(ShapefileDataStore.java:703)
        at 
org.geotools.data.shapefile.ShapefileDataStore.getSchema(ShapefileDataStore.java:606)
        at 
org.geotools.data.shapefile.ShapefileDataStore.getSchema(ShapefileDataStore.java:600)
        at 
org.geotools.data.shapefile.ShapefileDataStore.getFeatureSource(ShapefileDataStore.java:946)
        at com.mycompany.ShapeFileApp.ShapefileDemo.main(ShapefileDemo.java:63)

Any suggestions ?

cheers
Michael

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to