Class RasterReader


  • public class RasterReader
    extends org.hortonmachine.gears.libs.modules.HMModel
    • Field Detail

      • pNorth

        public Double pNorth
      • pSouth

        public Double pSouth
      • outRaster

        public org.geotools.coverage.grid.GridCoverage2D outRaster
      • doEnvelope

        public boolean doEnvelope
        Flag to read only envelope (if true, the output geodata is null).
      • originalEnvelope

        public org.geotools.geometry.GeneralEnvelope originalEnvelope
        The original envelope of the coverage.
    • Constructor Detail

      • RasterReader

        public RasterReader()
    • Method Detail

      • readRaster

        public static org.geotools.coverage.grid.GridCoverage2D readRaster​(String path)
                                                                    throws Exception
        Utility method to quickly read a grid in default mode.
        Parameters:
        path - the path to the file.
        Returns:
        the read coverage.
        Throws:
        Exception