Class GridNodeMultiProcessing
- java.lang.Object
-
- org.hortonmachine.gears.libs.modules.HMModel
-
- org.hortonmachine.gears.libs.modules.multiprocessing.MultiProcessing
-
- org.hortonmachine.gears.libs.modules.multiprocessing.GridNodeMultiProcessing
-
public abstract class GridNodeMultiProcessing extends MultiProcessing
- Author:
- Falko Bräutigam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceGridNodeMultiProcessing.Calculator<T>
-
Constructor Summary
Constructors Constructor Description GridNodeMultiProcessing()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidprocessGridNodes(org.geotools.coverage.grid.GridCoverage2D inElev, GridNodeMultiProcessing.Calculator<GridNode> calculator)Loops through all rows and cols of the given grid and calls the given calculator for eachGridNode.RegionMapregionMap(org.geotools.coverage.grid.GridCoverage2D grid)Calculates theRegionMapfor the given grid by callingCoverageUtilities.getRegionParamsFromGridCoverage(GridCoverage2D).-
Methods inherited from class org.hortonmachine.gears.libs.modules.multiprocessing.MultiProcessing
createDefaultPlanner
-
Methods inherited from class org.hortonmachine.gears.libs.modules.HMModel
checkCancel, checkFileExists, checkNull, checkWorkingFolderInPath, concatOr, dumpRaster, dumpVector, getDefaultThreadsNum, getRaster, getVector, help, isCanceled, template
-
-
-
-
Method Detail
-
regionMap
public RegionMap regionMap(org.geotools.coverage.grid.GridCoverage2D grid)
Calculates theRegionMapfor the given grid by callingCoverageUtilities.getRegionParamsFromGridCoverage(GridCoverage2D). The result is cached and re-used.
-
processGridNodes
protected void processGridNodes(org.geotools.coverage.grid.GridCoverage2D inElev, GridNodeMultiProcessing.Calculator<GridNode> calculator) throws ExceptionLoops through all rows and cols of the given grid and calls the given calculator for eachGridNode.- Throws:
Exception
-
-