Class RasterReader

java.lang.Object
org.hortonmachine.gears.libs.modules.HMModel
org.hortonmachine.modules.RasterReader

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

    Fields
    Modifier and Type
    Field
    Description
    boolean
    Flag to read only envelope (if true, the output geodata is null).
     
    org.geotools.geometry.GeneralEnvelope
    The original envelope of the coverage.
    org.geotools.coverage.grid.GridCoverage2D
     
     
     
     
     
     
     
     
     

    Fields inherited from class org.hortonmachine.gears.libs.modules.HMModel

    doProcess, doReset, gf, pm
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    static org.geotools.coverage.grid.GridCoverage2D
    Utility method to quickly read a grid in default mode.

    Methods inherited from class org.hortonmachine.gears.libs.modules.HMModel

    checkCancel, checkFileExists, checkNull, checkWorkingFolderInPath, concatOr, dumpRaster, dumpVector, getDefaultThreadsNum, getRaster, getVector, help, isCanceled, template

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • file

      public String file
    • pNorth

      public Double pNorth
    • pSouth

      public Double pSouth
    • pWest

      public Double pWest
    • pEast

      public Double pEast
    • pXres

      public Double pXres
    • pYres

      public Double pYres
    • pRows

      public Integer pRows
    • pCols

      public Integer pCols
    • 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 Details

    • RasterReader

      public RasterReader()
  • Method Details

    • process

      public void process() throws Exception
      Throws:
      Exception
    • 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