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 doEnvelope
    Flag to read only envelope (if true, the output geodata is null).
    java.lang.String file  
    java.lang.Double fileNovalue  
    java.lang.Double geodataNovalue  
    org.geotools.geometry.GeneralEnvelope originalEnvelope
    The original envelope of the coverage.
    org.geotools.coverage.grid.GridCoverage2D outRaster  
    java.lang.Integer pCols  
    java.lang.Double pEast  
    java.lang.Double pNorth  
    java.lang.Integer pRows  
    java.lang.Double pSouth  
    java.lang.Double pWest  
    java.lang.Double pXres  
    java.lang.Double pYres  

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

    doProcess, doReset, gf, pm
  • Constructor Summary

    Constructors 
    Constructor Description
    RasterReader()  
  • Method Summary

    Modifier and Type Method Description
    void process()  
    static org.geotools.coverage.grid.GridCoverage2D readRaster​(java.lang.String path)
    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 java.lang.String file
    • fileNovalue

      public java.lang.Double fileNovalue
    • geodataNovalue

      public java.lang.Double geodataNovalue
    • pNorth

      public java.lang.Double pNorth
    • pSouth

      public java.lang.Double pSouth
    • pWest

      public java.lang.Double pWest
    • pEast

      public java.lang.Double pEast
    • pXres

      public java.lang.Double pXres
    • pYres

      public java.lang.Double pYres
    • pRows

      public java.lang.Integer pRows
    • pCols

      public java.lang.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

  • Method Details

    • process

      public void process() throws java.lang.Exception
      Throws:
      java.lang.Exception
    • readRaster

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