|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.supermap.chart.conversion.DataExportChart
public class DataExportChart
海图数据导出类。通过该类可以将数据导出为标准海图数据(*.000等格式文件)。
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 对象。 |
方法摘要 | |
---|---|
void |
addExportSteppedListener(ExportChartSteppedListener exportChartSteppedListener)
添加一个用于接收海图数据导出进度事件 ExportChartSteppedListener 的监听器。 |
void |
dispose()
释放该对象所占用的资源。 |
ExportSettingCharts |
getExportSettingCharts()
返回 ExportSettingCharts 对象,用于多个导出任务的设置。 |
void |
removeExportSteppedListener(ExportChartSteppedListener exportChartSteppedListener)
移除一个用于接收海图数据导出进度事件 ExportChartSteppedListener 的监听器。 |
ExportResultChart |
run()
执行导出数据集的操作,返回海图数据导出结果 ExportResultChart 。 |
void |
setExportSettingCharts(ExportSettingCharts exportSettings)
设置 ExportSettingCharts 对象,用于多个导出任务的设置。 |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public DataExportChart()
DataExportChart
对象。
方法详细信息 |
---|
public ExportResultChart run()
ExportResultChart
。
ExportSettingChart
集合。public ExportSettingCharts getExportSettingCharts()
ExportSettingCharts
对象,用于多个导出任务的设置。
public void setExportSettingCharts(ExportSettingCharts exportSettings)
ExportSettingCharts
对象,用于多个导出任务的设置。
exportSettings
- SuperMap 格式数据导出设置信息集合对象,用于多个导出任务的设置。
>默认值为一个 ExportSettingCharts
对象,该对象用来存储ExportSettingChart
对象,默认的 ExportSettingChart
对象个数为0。
public void dispose()
public void addExportSteppedListener(ExportChartSteppedListener exportChartSteppedListener)
ExportChartSteppedListener
的监听器。
exportChartSteppedListener
- 一个用于接收接收海图数据导出进度事件的监听器。public void removeExportSteppedListener(ExportChartSteppedListener exportChartSteppedListener)
ExportChartSteppedListener
的监听器。
exportChartSteppedListener
- 一个用于接收接收海图数据导出进度事件的监听器。
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |