com.supermap.data.conversion
类 ImportSettingVRT

java.lang.Object
  继承者 com.supermap.data.conversion.ImportSetting
      继承者 com.supermap.data.conversion.ImportSettingVRT

public class ImportSettingVRT
extends ImportSetting

GDAL Virtual(VRT) 文件导入的参数设置类。继承自 ImportSetting 类。

注意:

  1. 传入的文件型的数据源和工作空间连接信息,在传入之前不能被打开,否则会导入失败。


构造方法摘要
ImportSettingVRT()
          默认构造函数,构造一个新的 ImportSettingVRT 对象。
ImportSettingVRT(ImportSettingVRT importSettingVRT)
          拷贝构造函数,根据给定的 ImportSettingVRT 对象构造一个与其完全相同的新对象。
ImportSettingVRT(java.lang.String sourceFilePath, Datasource targetDatasource)
          根据指定的参数构造 ImportSettingVRT 类的新实例。
ImportSettingVRT(java.lang.String sourceFilePath, DatasourceConnectionInfo targetConnectionInfo)
          根据指定的参数构造 ImportSettingVRT 类的新实例。
 
方法摘要
 void dispose()
          释放该对象所占用的资源。
 IgnoreMode getIgnoreMode()
          返回 GDAL Virtual(VRT) 文件的忽略颜色值的模式。
 double[] getIgnoreValues()
          返回要忽略的颜色值。
 MultiBandImportMode getMultiBandImportMode()
          返回多波段导入模式,可以导入为多个单波段数据集、单个多波段数据集或单个单波段数据集。
 boolean isImportingAsGrid()
          返回是否导入为 Grid 数据集。
 boolean isPyramidBuilt()
          返回是否自动建立影像金字塔。
 void setIgnoreMode(IgnoreMode ignoreMode)
          设置 GDAL Virtual(VRT) 文件的忽略颜色值的模式。
 void setIgnoreValues(double[] ignoreValues)
          设置要忽略的颜色值。
 void setImportingAsGrid(boolean value)
          设置是否导入为 Grid 数据集。
 void setMultiBandImportMode(MultiBandImportMode multiBandImportMode)
          设置多波段导入模式,可以导入为多个单波段数据集、单个多波段数据集或单个单波段数据集。
 void setPyramidBuilt(boolean value)
          设置是否自动建立影像金字塔。
 
从类 com.supermap.data.conversion.ImportSetting 继承的方法
fromXML, getEncodeType, getImportMode, getSourceFileCharset, getSourceFilePath, getSourceFileType, getSourcePrjCoordSys, getTargetDataInfos, getTargetDataInfos, getTargetDatasetName, getTargetDatasource, getTargetDatasourceConnectionInfo, getTargetEncodeType, getTargetPrjCoordSys, isUseFME, setEncodeType, setFieldValue, setImportMode, setScalingFactor, setSourceFileCharset, setSourceFilePath, setTargetDataInfos, setTargetDatasetName, setTargetDatasource, setTargetDatasourceConnectionInfo, setTargetEncodeType, setTargetPrjCoordSys, setUseFME, toXML
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ImportSettingVRT

public ImportSettingVRT()
默认构造函数,构造一个新的 ImportSettingVRT 对象。


ImportSettingVRT

public ImportSettingVRT(ImportSettingVRT importSettingVRT)
拷贝构造函数,根据给定的 ImportSettingVRT 对象构造一个与其完全相同的新对象。

参数:
importSettingVRT - 用于初始化 ImportSettingVRT 新实例的对象。

ImportSettingVRT

public ImportSettingVRT(java.lang.String sourceFilePath,
                        DatasourceConnectionInfo targetConnectionInfo)
根据指定的参数构造 ImportSettingVRT 类的新实例。

参数:
sourceFilePath - 指定的导入GDAL Virtual(VRT) 格式数据的源文件路径。
targetConnectionInfo - 指定的导入到目标数据源的连接信息对象。

ImportSettingVRT

public ImportSettingVRT(java.lang.String sourceFilePath,
                        Datasource targetDatasource)
根据指定的参数构造 ImportSettingVRT 类的新实例。

参数:
sourceFilePath - 指定的导入GDAL Virtual(VRT)格式数据的源文件路径。
targetDatasource - 指定的导入到的目标数据源对象。
方法详细信息

isImportingAsGrid

public boolean isImportingAsGrid()
返回是否导入为 Grid 数据集。

返回:
一个布尔值,表示是否导入为 Grid 数据集。导入为 Grid 数据集返回 true,否则返回 false。
默认值:
默认值为 false,即按源数据集类型导入数据集。

setImportingAsGrid

public void setImportingAsGrid(boolean value)
设置是否导入为 Grid 数据集。

注意:当设置为 true 时,由于栅格数据集不支持单个多波段数据集,若导入参数 setMultiBandImportMode 设置为 MULTIBAND ,则在数据导入时会将 MultiBandImportMode 自动修改为 SINGLEBAND

参数:
value - 一个布尔值,表示是否导入为 Grid 数据集。true 表示导入为 Grid 数据集,false 表示按源数据集类型导入。

isPyramidBuilt

public boolean isPyramidBuilt()
返回是否自动建立影像金字塔。默认为 false,表示默认情况下不对影像数据建立影像金字塔。

返回:
一个布尔值,自动建立影像金字塔返回 true ,否则返回 false。
默认值:
默认值为 false。

setPyramidBuilt

public void setPyramidBuilt(boolean value)
设置是否自动建立影像金字塔。默认为 false,表示默认情况下不对影像数据建立影像金字塔。

参数:
value - 是否自动建立影像金字塔。

getMultiBandImportMode

public MultiBandImportMode getMultiBandImportMode()
返回多波段导入模式,可以导入为多个单波段数据集、单个多波段数据集或单个单波段数据集。

返回:
多波段导入模式,可参见MultiBandImportMode
默认值:
默认值为 SINGLEBAND

setMultiBandImportMode

public void setMultiBandImportMode(MultiBandImportMode multiBandImportMode)
设置多波段导入模式,可以导入为多个单波段数据集、单个多波段数据集或单个单波段数据集。

参数:
multiBandImportMode - 多波段导入模式,可参见MultiBandImportMode

getIgnoreMode

public IgnoreMode getIgnoreMode()
返回 GDAL Virtual(VRT) 文件的忽略颜色值的模式。

返回:
GDAL Virtual(VRT) 文件的忽略颜色值的模式。

setIgnoreMode

public void setIgnoreMode(IgnoreMode ignoreMode)
设置 GDAL Virtual(VRT) 文件的忽略颜色值的模式。

参数:
ignoreMode - 忽略颜色值的模式。

getIgnoreValues

public double[] getIgnoreValues()
返回要忽略的颜色值。

返回:
一个颜色值数组对象,数组中的值对应的颜色会被忽略。

setIgnoreValues

public void setIgnoreValues(double[] ignoreValues)
设置要忽略的颜色值。

参数:
ignoreValues - 一个颜色值数组对象。

dispose

public void dispose()
释放该对象所占用的资源。当调用该方法之后,此对象不再可用。