When executing the following code, I am receiving this exception:

File shapeFile = new File(pFileName);
              Map<Object, Object> connect = new HashMap<Object, Object>();
              URL url = shapeFile.toURL();
              connect.put("url", url);
            if (logger.isDebugEnabled()) logger.debug("loadShapeFile: created 
url " + url);

              DataStore dataStore = new IndexedShapefileDataStore(url, true, 
true);
            if (logger.isDebugEnabled()) logger.debug("loadShapeFile: loaded 
datastore");
              //String[] typeNames = dataStore.getTypeNames();
              //String typeName = typeNames[0];

              FeatureSource<SimpleFeatureType, SimpleFeature> featureSource = 
dataStore.getFeatureSource(dataStore.getTypeNames()[0]);


org.geotools.factory.FactoryRegistry scanForPlugins
WARNING: Can't load a service for category "Function". Cause is 
"ServiceConfigurationError: org.opengis.filter.expression.Function: Provider 
org.geotools.filter.InterpolateFunctionorg.geotools.filter.AreaFunction not 
found".
sun.misc.ServiceConfigurationError: org.opengis.filter.expression.Function: 
Provider 
org.geotools.filter.InterpolateFunctionorg.geotools.filter.AreaFunction not 
found
                at sun.misc.Service.fail(Service.java:129)
                at sun.misc.Service.access$000(Service.java:111)
                at sun.misc.Service$LazyIterator.next(Service.java:273)
                at 
org.geotools.factory.FactoryRegistry.register(FactoryRegistry.java:829)
                at 
org.geotools.factory.FactoryRegistry.scanForPlugins(FactoryRegistry.java:773)
                at 
org.geotools.factory.FactoryRegistry.scanForPluginsIfNeeded(FactoryRegistry.java:808)
                at 
org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:195)
                at 
org.geotools.factory.CommonFactoryFinder.getFunctions(CommonFactoryFinder.java:143)
                at 
org.geotools.filter.FunctionFinder.findFunction(FunctionFinder.java:114)
                at 
org.geotools.filter.FunctionFinder.findFunction(FunctionFinder.java:74)
                at 
org.geotools.filter.FilterFactoryImpl.function(FilterFactoryImpl.java:468)
                at 
org.geotools.feature.AttributeTypeBuilder.lengthRestriction(AttributeTypeBuilder.java:625)
                at 
org.geotools.feature.AttributeTypeBuilder.buildType(AttributeTypeBuilder.java:456)
                at 
org.geotools.feature.AttributeTypeBuilder.buildDescriptor(AttributeTypeBuilder.java:517)
                at 
org.geotools.data.shapefile.ShapefileDataStore.readAttributes(ShapefileDataStore.java:735)
                at 
org.geotools.data.shapefile.ShapefileDataStore.getSchema(ShapefileDataStore.java:638)
                at 
org.geotools.data.shapefile.ShapefileDataStore.getSchema(ShapefileDataStore.java:632)
                at 
org.geotools.data.shapefile.ShapefileDataStore.getFeatureSource(ShapefileDataStore.java:964)
                at 
com.railinc.ba.geo.fra.FRAGeoImporter.loadShapeFile(FRAGeoImporter.java:216

________________________________
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to