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

        public DataExportChart()
        构造一个新的 DataExportChart对象。
    • 方法详细资料

      • getExportSettingCharts

        public ExportSettingCharts getExportSettingCharts()
        返回ExportSettingCharts对象,用于多个导出任务的设置。
        返回:
        SuperMap 格式数据导出设置信息集合对象。
      • 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–2024 SuperMap. All rights reserved.