com.supermap.chart.conversion
类 DataExportChart
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.chart.conversion.DataExportChart
-
- 所有已实现的接口:
- IDisposable
public class DataExportChart extends com.supermap.data.InternalHandleDisposable海图数据导出类。通过该类可以将数据导出为标准海图数据(*.000等格式文件)。- 示范代码:
- 以下示范代码实现如何导出 SuperMap 格式数据,并返回 SuperMap 格式数据导出结果对象。
public void exportS57(){ //获取名称为GB_Chart的数据源。 Datasource datasource = m_workspace.getDatasources().get("GB_Chart"); // 设置需要导出数据以及文件类型、路径。 ExportSettingChartS57 exportSettingChartS57 = new ExportSettingChartS57(); exportSettingChartS57.setSourceData(datasource.getRootGroup().getChildGroups().get(0)); exportSettingChartS57.setTargetFilePath("SampleData\\GB4X1111.000"); exportSettingChartS57.setTargetFileTypeChart(FileTypeChart.S57); // 构建 SuperMap格式数据导出对象(DataExportChart),并设置导出设置信息类对象。 DataExportChart dataExportChart = new DataExportChart(); ExportSettingCharts exportSettingCharts = dataExportChart.getExportSettingCharts(); exportSettingCharts.add(exportSettingChartS57); // 执行数据的导出,得到SuperMap 格式数据导出结果对象。 ExportResultChart exportResultChart = dataExportChart.run(); // 释放 DataExportChart 对象所占用的资源。 dataExportChart.dispose(); }
-
-
构造器概要
构造器 构造器和说明 DataExportChart()构造一个新的DataExportChart对象。
-
方法概要
所有方法 静态方法 实例方法 具体方法 限定符和类型 方法和说明 voidaddExportSteppedListener(ExportChartSteppedListener exportChartSteppedListener)添加一个用于接收海图数据导出进度事件ExportChartSteppedListener的监听器。voiddispose()释放该对象所占用的资源。ExportSettingChartsgetExportSettingCharts()返回ExportSettingCharts对象,用于多个导出任务的设置。static longgetHandle(com.supermap.data.InternalHandle obj)voidremoveExportSteppedListener(ExportChartSteppedListener exportChartSteppedListener)移除一个用于接收海图数据导出进度事件ExportChartSteppedListener的监听器。ExportResultChartrun()执行导出数据集的操作,返回海图数据导出结果ExportResultChart。voidsetExportSettingCharts(ExportSettingCharts exportSettings)设置ExportSettingCharts对象,用于多个导出任务的设置。static voidsetIsDisposable(com.supermap.data.InternalHandleDisposable obj, boolean disposable)voidsetUpDate(Boolean m_isUpDate)
-
-
-
构造器详细资料
-
DataExportChart
public DataExportChart()
构造一个新的DataExportChart对象。
-
-
方法详细资料
-
run
public ExportResultChart run()
执行导出数据集的操作,返回海图数据导出结果ExportResultChart。- 返回:
- 数据集导出结果,包含成功和失败的任务对应的
ExportSettingChart集合。
-
getExportSettingCharts
public ExportSettingCharts getExportSettingCharts()
返回ExportSettingCharts对象,用于多个导出任务的设置。- 返回:
- SuperMap 格式数据导出设置信息集合对象。
-
setExportSettingCharts
public void setExportSettingCharts(ExportSettingCharts exportSettings)
设置ExportSettingCharts对象,用于多个导出任务的设置。- 参数:
exportSettings- SuperMap 格式数据导出设置信息集合对象,用于多个导出任务的设置。>默认值为一个
ExportSettingCharts对象,该对象用来存储ExportSettingChart对象,默认的ExportSettingChart对象个数为0。
-
dispose
public void dispose()
释放该对象所占用的资源。
-
addExportSteppedListener
public void addExportSteppedListener(ExportChartSteppedListener exportChartSteppedListener)
添加一个用于接收海图数据导出进度事件ExportChartSteppedListener的监听器。- 参数:
exportChartSteppedListener- 一个用于接收接收海图数据导出进度事件的监听器。
-
removeExportSteppedListener
public void removeExportSteppedListener(ExportChartSteppedListener exportChartSteppedListener)
移除一个用于接收海图数据导出进度事件ExportChartSteppedListener的监听器。- 参数:
exportChartSteppedListener- 一个用于接收接收海图数据导出进度事件的监听器。
-
setUpDate
public void setUpDate(Boolean m_isUpDate)
-
setIsDisposable
public static void setIsDisposable(com.supermap.data.InternalHandleDisposable obj, boolean disposable)
-
getHandle
public static long getHandle(com.supermap.data.InternalHandle obj)
-
-
Copyright © 2021–2025 SuperMap. All rights reserved.