kmlPath:/storage/emulated/0/sdcard/Documents/桥涵/YK0+000——YK6+700.kml
isImportKMLSuccess = DataConversion.importKML(kmlPath,m_mapControl.getMap().getWorkspace().getDatasources().get(0),"kml"+String.valueOf(kmlCount),true)
用以上方法导入失败,然后我试了下下面的,也是导入失败
ImportSettingKML kmlsetting = new ImportSettingKML();
kmlsetting.setTargetDatasource(m_woWorkspace.getDatasources().get(0));
kmlsetting.setSourceFilePath(kmlPath);
kmlsetting.setSourceFileCharset(Charset.ANSI);
kmlsetting.setImportingAsCAD(true);
kmlsetting.setTargetDatasetName("kml"+String.valueOf(kmlCount));
DataImport dataImport = new DataImport();
dataImport.getImportSettings().add(kmlsetting);
ImportResult result = dataImport.run();
int length = result.getSucceedSettings().length;
结果是length为0