public static void importMdb(String sourceFile, DatasourceConnectionInfo targetDatasourceInfo, String targetDatasetName) {
DataImport dataImport = new DataImport();
ImportSettingPersonalGDBVector importSetting = new ImportSettingPersonalGDBVector();
importSetting.setImportMode(ImportMode.APPEND);
importSetting.setSourceFileCharset(Charset.UTF8);
importSetting.setSourceFilePath(sourceFile);
importSetting.setTargetDatasourceConnectionInfo(targetDatasourceInfo);
if (targetDatasetName != null && targetDatasetName.length() > 0) {
importSetting.setTargetDatasetName(targetDatasetName);
}
importSetting.setIsImportEmptyDataset(true);
dataImport.getImportSettings().add(importSetting);
ImportResult result = dataImport.run();
dataImport.dispose();
}
请问一下这个代码做MDB导入udbx的操作,为什么导不进去,但是gdb导入到udbx却能成功,是代码有相应问题,还是其他?采用的是 supermap iobject java 10