Hi!
I've creataed a project in eclipse, and pasted the code for the example
SHP2SHP. Imported all jars existing for Geotools into the reference library.
This is about all I've done.
I'm using GeoTools 2.5.1, 1.6.0_07
when I execute the the example (within eclipse) I'm getting the following
warnings and exceptions at command:
CoordinateReferenceSystem crs = getCoordinateReferenceSystem("Project "
+ file + " to:");
2008-dec-05 09:43:57 org.geotools.factory.FactoryRegistry scanForPlugins
VARNING: Can't load a service for category "CRSAuthorityFactory". Cause is
"ServiceConfigurationError: org.opengis.referencing.crs.CRSAuthorityFactory:
Provider org.geotools.referencing.factory.epsg.ThreadedAccessEpsgFactory not
found".
sun.misc.ServiceConfigurationError:
org.opengis.referencing.crs.CRSAuthorityFactory: Provider
org.geotools.referencing.factory.epsg.ThreadedAccessEpsgFactory not found
at sun.misc.Service.fail(Unknown Source)
at sun.misc.Service.access$000(Unknown Source)
at sun.misc.Service$LazyIterator.next(Unknown Source)
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.referencing.ReferencingFactoryFinder.getFactories(ReferencingFactoryFinder.java:176)
at
org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactories(ReferencingFactoryFinder.java:451)
at
org.geotools.referencing.DefaultAuthorityFactory.getSupportedCodes(DefaultAuthorityFactory.java:125)
at org.geotools.referencing.CRS.getSupportedCodes(CRS.java:296)
at Shp2Shp.getCoordinateReferenceSystem(Shp2Shp.java:125)
at Shp2Shp.main(Shp2Shp.java:60)
2008-dec-05 09:43:59
org.geotools.referencing.factory.epsg.ThreadedPostgreSQLEpsgFactory isAvailable
VARNING: Unavailable authority factory: European Petroleum Survey Group
org.opengis.referencing.FactoryException: Failed to connect to the EPSG
database.
at
org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore(ThreadedEpsgFactory.java:428)
at
org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(DeferredAuthorityFactory.java:132)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable(BufferedAuthorityFactory.java:233)
at
org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable(DeferredAuthorityFactory.java:119)
at
org.geotools.factory.FactoryRegistry.isAvailable(FactoryRegistry.java:668)
at
org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:500)
at
org.geotools.factory.FactoryRegistry$1.filter(FactoryRegistry.java:191)
at javax.imageio.spi.FilterIterator.advance(Unknown Source)
at javax.imageio.spi.FilterIterator.<init>(Unknown Source)
at javax.imageio.spi.ServiceRegistry.getServiceProviders(Unknown Source)
at
org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:196)
at
org.geotools.referencing.ReferencingFactoryFinder.getFactories(ReferencingFactoryFinder.java:176)
at
org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactories(ReferencingFactoryFinder.java:451)
at
org.geotools.referencing.DefaultAuthorityFactory.getSupportedCodes(DefaultAuthorityFactory.java:125)
at org.geotools.referencing.CRS.getSupportedCodes(CRS.java:296)
at Shp2Shp.getCoordinateReferenceSystem(Shp2Shp.java:125)
at Shp2Shp.main(Shp2Shp.java:60)
Any suggestions?
Thanks,
Paul
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users