类 GeoTiff
- java.lang.Object
-
- org.meteoinfo.data.mapdata.geotiff.GeoTiff
-
public class GeoTiff extends Object
- 作者:
- yaqiang
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()CloseintgetBandNum()Get band numberGridArraygetGridArray()Get grid dataGridDatagetGridData()Get grid dataGridDatagetGridData_Value()Get grid datalonggetStripOffset(IFDEntry stripOffsetTag, int i)Get strip offsetintgetStripSize(IFDEntry stripSizeTag, int i)Get strip sizevoidinitTags()Init tagsstatic booleanisGeoTiff(String filename)Check the tiff file is geotiff or notvoidread()Read fileorg.meteoinfo.ndarray.ArrayreadArray()Test read dataorg.meteoinfo.ndarray.ArrayreadArray(org.meteoinfo.ndarray.Range yRange, org.meteoinfo.ndarray.Range xRange)Test read dataint[][]readData()Get grid dataint[]readData(int width, int height)Test read dataProjectionInforeadProj()Read projection infoList<double[]>readXY()Read X/Y coordinatesList<double[]>readXY(IFD ifd)Read X/Y coordinatesStringshowInfo()Show infovoidshowInfo(PrintStream out)Show Info
-
-
-
构造器详细资料
-
GeoTiff
public GeoTiff(String filename)
Constructor- 参数:
filename- File name
-
-
方法详细资料
-
close
public void close() throws IOExceptionClose- 抛出:
IOException- IOException
-
initTags
public void initTags() throws IOExceptionInit tags- 抛出:
IOException
-
read
public void read() throws IOExceptionRead file- 抛出:
IOException
-
isGeoTiff
public static boolean isGeoTiff(String filename)
Check the tiff file is geotiff or not- 参数:
filename- The tiff file name- 返回:
- Is geotiff or not
-
readXY
public List<double[]> readXY()
Read X/Y coordinates- 返回:
- X/Y coordinates
-
readData
public int[][] readData()
Get grid data- 返回:
- Grid data
-
getGridArray
public GridArray getGridArray()
Get grid data- 返回:
- Grid data
-
getGridData
public GridData getGridData()
Get grid data- 返回:
- Grid data
-
getGridData_Value
public GridData getGridData_Value()
Get grid data- 返回:
- Grid data
-
readProj
public ProjectionInfo readProj()
Read projection info- 返回:
- Projection info
-
readData
public int[] readData(int width, int height) throws IOExceptionTest read data- 参数:
width- Widthheight- Height- 返回:
- Data
- 抛出:
IOException
-
getBandNum
public int getBandNum()
Get band number- 返回:
- Band number
-
getStripOffset
public long getStripOffset(IFDEntry stripOffsetTag, int i)
Get strip offset- 参数:
stripOffsetTag- Strip offset tagi- Index- 返回:
- Strip offset
-
getStripSize
public int getStripSize(IFDEntry stripSizeTag, int i)
Get strip size- 参数:
stripSizeTag- Strip size tagi- Index- 返回:
- Strip size
-
readArray
public org.meteoinfo.ndarray.Array readArray() throws IOExceptionTest read data- 返回:
- Data
- 抛出:
IOException
-
readArray
public org.meteoinfo.ndarray.Array readArray(org.meteoinfo.ndarray.Range yRange, org.meteoinfo.ndarray.Range xRange) throws IOException, org.meteoinfo.ndarray.InvalidRangeExceptionTest read data- 参数:
yRange- Y rangexRange- X range- 返回:
- Data
- 抛出:
IOExceptionorg.meteoinfo.ndarray.InvalidRangeException
-
showInfo
public void showInfo(PrintStream out)
Show Info- 参数:
out- PrintStream
-
showInfo
public String showInfo()
Show info- 返回:
- Infostring
-
-