Perform a zonal summary by invoking a function on each cell under provided features.
Perform a zonal summary by invoking a function on each cell under provided features.
This function is a closure that returns Unit; all results are a side effect of this function.
Note: the function f should modify a mutable variable as a side effect. While not ideal, this avoids the unavoidable boxing that occurs when a Function3 returns a primitive value.
Feature for calculation
RasterExtent to use for iterating through cells
A function that takes (col:Int, row:Int, rasterValue:Int, feature:Feature)
Iterates over the cells determined by the segments of a LineString.
Iterates over the cells determined by the segments of a LineString. The iteration happens in the direction from the first point to the last point.
Apply function f to every cell contained within MultiLineString.
Apply function f to every cell contained within MultiLineString.
MultiLineString used to define zone
RasterExtent used to determine cols and rows
Function to apply: f(cols,row,feature)
Apply function f to every cell contained with MultiPolygon.
Apply function f to every cell contained with MultiPolygon.
MultiPolygon used to define zone
RasterExtent used to determine cols and rows
Function to apply: f(cols,row,feature)
Invoke a function on raster cells under a point feature.
Invoke a function on raster cells under a point feature.
The function f is a closure that should alter a mutable variable by side effect (to avoid boxing).
Invoke a function on each point in a sequences of Points.
Apply function f(col,row,feature) to every cell contained within polygon.
Apply function f(col,row,feature) to every cell contained within polygon.
Polygon used to define zone
RasterExtent used to determine cols and rows
Function to apply: f(cols,row,feature)
* Implementation of the Bresenham line drawing algorithm.
* Implementation of the Bresenham line drawing algorithm. Only calls on cell coordinates within raster extent.
LineString used to define zone
RasterExtent used to determine cols and rows
'true' if the function should skip function calling the last cell (x1,y1). This is useful for not duplicating end points when calling for multiple line segments
Function to apply: f(cols,row,feature)
Create a raster from a geometry feature.
Create a raster from a geometry feature.
Feature to rasterize
Definition of raster to create
Function that takes col, row, feature and returns value to burn
Create a raster from a geometry feature.
Create a raster from a geometry feature.
Feature to rasterize
Definition of raster to create
Single value to burn
Create a raster from a geometry feature.
Create a raster from a geometry feature.
Feature to rasterize
Definition of raster to create
Function that returns single value to burn
(Since version 0.9.0) Use rasterizeWithValue(feature, rasterExtent, value)