re: 申请团队Blog cyqian 2007-03-18 21:45
1、团队英文名称(用于二级域名):ocean
2、团队中文名称:开源GIS
3、团队简介:致力于开源相关(postGIS,geotools等)的GIS网络应用研究
4、团队成员的Blog帐号:sinoly,cyqian
求助
FeatureSource fsBC=pgDataStore.getFeatureSource(featureName);
我加入了上面getFeatureSource这句之后就有问题,不了解哎~~
下面是警告的一部分:
2007-3-17 22:19:38 FactoryRegistry scanForPlugins
警告: Can't load a service for category "CRSAuthorityFactory". Cause is "NoClassDefFoundError: javax/units/ConversionException".
2007-3-17 22:19:38 FactoryRegistry scanForPlugins
警告: Can't load a service for category "CRSAuthorityFactory". Cause is "NoClassDefFoundError: javax/units/ConversionException".
2007-3-17 22:19:38 FactoryRegistry scanForPlugins
警告: Can't load a service for category "CRSAuthorityFactory". Cause is "NoClassDefFoundError: javax/units/ConversionException".
Exception in thread "main" java.lang.StackOverflowError
at java.util.HashMap.get(HashMap.java:343)
at java.awt.RenderingHints.get(RenderingHints.java:461)
at org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:223)
at org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:115)
at org.geotools.referencing.FactoryFinder.getAuthorityFactory(FactoryFinder.java:235)
at org.geotools.referencing.FactoryFinder.getCRSAuthorityFactory(FactoryFinder.java:496)
at org.geotools.referencing.factory.epsg.LongitudeFirstFactory.createBackingStore(LongitudeFirstFactory.java:180)
at org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(DeferredAuthorityFactory.java:136)
at org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable(BufferedAuthorityFactory.java:206)
at org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable(DeferredAuthorityFactory.java:124)
at org.geotools.factory.FactoryRegistry$DefaultFilter.filter(FactoryRegistry.java:76)
at javax.imageio.spi.FilterIterator.advance(ServiceRegistry.java:793)
at javax.imageio.spi.FilterIterator.<init>(ServiceRegistry.java:787)
阿~~知道了。在gt2-api-2.3.0里边。刚开始我没有导入它。十分感谢~
“import org.geotools.data.DataStore;”
我找不到 org.geotools.data.DataStore ,只有一个datastore的抽象类,我用的也是2.3。请赐教~~谢谢。