我正在尝试使用GeoTools库加载和解析一个shapefile。但是,当我试图加载文件时,下面的调用将导致org.geotools.factory.FactoryRegistry的依赖关系失败
DataStore newStore = DataStoreFinder.getDataStore(connect);错误:
org/geotools/factory/FactoryRegistry
java.lang.NoClassDefFoundError: org/geotools/factory/FactoryRegistry我在gradle中包含了以下依赖项:
compile files ('libs/geotools/gt-opengis-14.2.jar')
compile files ('libs/geotools/gt-api-14.2.jar')
compile files ('libs/geotools/gt-shapefile-14.2.jar')
compile files ('libs/geotools/gt-cql-14.2.jar')
compile files ('libs/geotools/gt-main-14.2.jar')
compile files ('libs/geotools/gt-referencing-14.2.jar')
compile files ('libs/geotools/gt-epsg-hsql-14.2.jar')我不确定是否所有的课程都是必需的,但是没有一门课是缺少的。我还有什么其他的依赖吗?这个类被记录为这里。
https://stackoverflow.com/questions/36058118
复制相似问题