public override List<DataExchangeResult> ExportData(string path, List<Dataset> exportDatasets, VCTVersion version = VCTVersion.LANDUSE_VCT30)
{
List<DataExchangeResult> resultList = new List<DataExchangeResult>();
try
{
DataExport dataExport = new DataExport();
ExportSettingFileGDBVector exportSetting = new ExportSettingFileGDBVector();
exportSetting.SourceDatas = exportDatasets.ToArray();
exportSetting.IsOverwrite = true;
exportSetting.TargetFileType = FileType.FileGDBVector;
exportSetting.TargetFilePath = path;
exportSetting.IgnoreFieldNames = new string[2] { "UserID", "SmUserID" };//WZJ
dataExport.ExportSettings.Add(exportSetting);
ExportResult result = dataExport.Run();
dataExport.Dispose();
DataExchangeResult exchangeResult = new DataExchangeResult();
exchangeResult.ExchangeType = ExchangeType.Export;
if (result.FailedSettings.Length > 0)
{
exchangeResult.IsSuccee = false;
}
if (result.SucceedSettings.Length > 0)
{
exchangeResult.IsSuccee = true;
}
resultList.Add(exchangeResult);
}
catch(Exception ex)
{
m_log.Debug(ex.Message, ex);
return null;
}
return resultList;
}
我使用这段代码将数据集导出为gdb,有的电脑上导出成功,有的电脑上导出失败,请问导出gdb是缺少什么引擎吗