ExportSetting怎么导出Geopackage数据
try { FileUtils.forceMkdir(new File(filePath)); } catch (IOException e) { e.printStackTrace(); } DataExport dataExport = new DataExport(); ExportSettings exportSettings = new ExportSettings(); ExportSetting setting =new ExportSetting(); setting.setTargetFilePath(filePath+"/"+tableName);// 导出文件的路径 setting.setSourceData(datasource.getDatasets().get(tableName));// 设置需要导出的源数据集。 setting.setTargetFileCharset(Charset.UTF8);// 字符串编号 setting.setTargetFileType(fileType);// 导出的文件类型 exportSettings.add(setting); dataExport.setExportSettings(exportSettings); dataExport.addExportSteppedListener(exportSteppedListener); dataExport.run();
代码是这样的,我导出SHP格式的可以,但是Geopackage数据格式的导不出来, 谢谢