ImportSettingFileGDBVector gdbVector = new ImportSettingFileGDBVector(filePath, datasource); ImportDataInfos targetDataInfos = gdbVector.getTargetDataInfos(""); targetDataInfos.getCount();
经过我的测试在ImportSetting类设置filePath之后即可获取到类型和有几个数据集,而此时并没有执行后续的操作
DataImport dataImport = new DataImport(); dataImport.getImportSettings().add(gdbVector); ImportResult run = dataImport.run();