类 GeoTiff


  • public class GeoTiff
    extends Object
    作者:
    yaqiang
    • 构造器详细资料

      • GeoTiff

        public GeoTiff​(String filename)
        Constructor
        参数:
        filename - File name
    • 方法详细资料

      • 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
      • readXY

        public List<double[]> readXY​(IFD ifd)
        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 IOException
        Test read data
        参数:
        width - Width
        height - 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 tag
        i - Index
        返回:
        Strip offset
      • getStripSize

        public int getStripSize​(IFDEntry stripSizeTag,
                                int i)
        Get strip size
        参数:
        stripSizeTag - Strip size tag
        i - Index
        返回:
        Strip size
      • readArray

        public org.meteoinfo.ndarray.Array readArray()
                                              throws IOException
        Test 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.InvalidRangeException
        Test read data
        参数:
        yRange - Y range
        xRange - X range
        返回:
        Data
        抛出:
        IOException
        org.meteoinfo.ndarray.InvalidRangeException
      • showInfo

        public void showInfo​(PrintStream out)
        Show Info
        参数:
        out - PrintStream
      • showInfo

        public String showInfo()
        Show info
        返回:
        Infostring