Package org.hortonmachine.modules
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 booleandoEnvelopeFlag to read only envelope (if true, the output geodata is null).java.lang.Stringfilejava.lang.DoublefileNovaluejava.lang.DoublegeodataNovalueorg.geotools.geometry.GeneralEnvelopeoriginalEnvelopeThe original envelope of the coverage.org.geotools.coverage.grid.GridCoverage2DoutRasterjava.lang.IntegerpColsjava.lang.DoublepEastjava.lang.DoublepNorthjava.lang.IntegerpRowsjava.lang.DoublepSouthjava.lang.DoublepWestjava.lang.DoublepXresjava.lang.DoublepYres -
Constructor Summary
Constructors Constructor Description RasterReader() -
Method Summary
Modifier and Type Method Description voidprocess()static org.geotools.coverage.grid.GridCoverage2DreadRaster(java.lang.String path)Utility method to quickly read a grid in default mode.
-
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 doEnvelopeFlag to read only envelope (if true, the output geodata is null). -
originalEnvelope
public org.geotools.geometry.GeneralEnvelope originalEnvelopeThe original envelope of the coverage.
-
-
Constructor Details
-
RasterReader
public RasterReader()
-
-
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.ExceptionUtility method to quickly read a grid in default mode.- Parameters:
path- the path to the file.- Returns:
- the read coverage.
- Throws:
java.lang.Exception
-