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')
나는 그들 모두가 필요한지 확실하지 않지만 누락 된 수업이 없습니다. 내가 놓친 다른 의존성이 있습니까? 클래스는 여기 에 설명되어 있습니다 .
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다