com.supermap.image.processing
类 ImageReaderParameter
- java.lang.Object
-
- com.supermap.image.processing.ImageReaderParameter
-
- 所有已实现的接口:
- Serializable
- 直接已知子类:
- ImageReaderIKONOS2Parameter, ImageReaderJL1GPParameter, ImageReaderKOMPSAT3Parameter, ImageReaderLandsatParameter, ImageReaderSentinel2Parameter
public class ImageReaderParameter extends Object implements Serializable
影像读取参数类- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器和说明 ImageReaderParameter()构造一个影像读取参数ImageReaderParameter(ImageReaderParameter parameter)构造一个影像读取参数ImageReaderParameter(String filePath)构造一个影像读取参数ImageReaderParameter(String filePath, SensorCategory sensorCategory)构造一个影像读取参数
-
方法概要
所有方法 静态方法 实例方法 具体方法 限定符和类型 方法和说明 voidapply(Map<String,String> params)应用参数static ImageReaderParametercreate(Map<String,String> params)创建影像读取参数 ImageFilePath: 影像文件路径 RasterDataType: 影像传感器类别,值域参考SensorCategorySubDatasetType: 子数据集类型,值域参考KOMPSAT3DatasetType,JL1GPDatasetType,IKONOS2DatasetType,LandsatDatasetType,Sentinel2DatasetTypestatic ImageReaderParametercreate(SensorCategory sensorCategory)构造影像读取参数static ImageReaderParametercreate(String inputLine)根据文件路径或者命令行构建读取参数,参考ImageReaderParameter.create(Map)}booleanequals(Object obj)StringgetFilePath()SensorCategorygetSensorCategory()inthashCode()ImageReaderParametersetFilePath(String filePath)设置影像文件路径Map<String,String>toMap()StringtoString()重载 toString
-
-
-
构造器详细资料
-
ImageReaderParameter
public ImageReaderParameter()
构造一个影像读取参数
-
ImageReaderParameter
public ImageReaderParameter(String filePath)
构造一个影像读取参数- 参数:
filePath- 文件路径
-
ImageReaderParameter
public ImageReaderParameter(String filePath, SensorCategory sensorCategory)
构造一个影像读取参数- 参数:
filePath- 文件路径sensorCategory- 影像传感器类别
-
ImageReaderParameter
public ImageReaderParameter(ImageReaderParameter parameter)
构造一个影像读取参数- 参数:
parameter- 影像读取参数
-
-
方法详细资料
-
create
public static ImageReaderParameter create(SensorCategory sensorCategory)
构造影像读取参数- 参数:
sensorCategory- 传感器类别- 返回:
- 影像读取参数类
-
create
public static ImageReaderParameter create(String inputLine)
根据文件路径或者命令行构建读取参数,参考ImageReaderParameter.create(Map)}- 参数:
inputLine- 文件路径或参数组成的命令行- 返回:
- 影像读取参数
- 示范代码:
- 以下代码示范创建影像文件读取参数
ImageReaderParameter parameter = ImageReaderParameter.create("D:/GF1/GF1_PMS2_E104.0_N36.0_20140724_L1A0000000000-MSS2.xml");ImageReaderParameter parameter = ImageReaderParameter.create("--ImageFilePath=D:/GF1/GF1_PMS2_E104.0_N36.0_20140724_L1A0000000000-MSS2.xml --RasterDataType=GF1_PMS");ImageReaderParameter parameter = ImageReaderParameter.create("--ImageFilePath=D:/Landsat/LC08_L1TP_127035_20160516_20170324_01_T1_MTL.txt --RasterDataType=LANDSAT8_9_OLI_TIRS --SubDatasetType=MULTISPECTRAL");// 文件路径含有空格时,需要使用双引号 ImageReaderParameter parameter = ImageReaderParameter.create("--ImageFilePath=\"D:/Landsat/Landsat 8/LC08_L1TP_127035_20160516_20170324_01_T1_MTL.txt\" --RasterDataType=LANDSAT8_9_OLI_TIRS --SubDatasetType=MULTISPECTRAL");
-
create
public static ImageReaderParameter create(Map<String,String> params)
创建影像读取参数ImageFilePath: 影像文件路径
RasterDataType: 影像传感器类别,值域参考
SensorCategorySubDatasetType: 子数据集类型,值域参考
KOMPSAT3DatasetType,JL1GPDatasetType,IKONOS2DatasetType,LandsatDatasetType,Sentinel2DatasetType- 参数:
params- 影像读取参数- 返回:
- 影像读取参数类
-
getFilePath
public String getFilePath()
- 返回:
- 获取影像路径
-
setFilePath
public ImageReaderParameter setFilePath(String filePath)
设置影像文件路径- 参数:
filePath- 文件路径- 返回:
- 影像读取参数
-
getSensorCategory
public SensorCategory getSensorCategory()
- 返回:
- 传感器类别
-
-
Copyright © 2021–2025 SuperMap. All rights reserved.