A type encoding rasterizer options.
A companion object for the Options type.
A companion object for the Options type. Includes a function to produce the default options settings.
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
Options for the (Multi)Polygon and Extent rasterizers
A function that takes (col: Int, row: Int) and produces nothing
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
Options for the (Multi)Polygon and Extent rasterizers
A function that takes (col: Int, row: Int) and produces nothing
Given a Geometry and a RasterExtent, call the function 'f' at each pixel in the raster extent covered by the geometry.
Given a Geometry and a RasterExtent, call the function 'f' at each pixel in the raster extent covered by the geometry. The two arguments to the function 'f' are the column and row.
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.
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.
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
Desired connectivity of the line
Function to apply: f(cols, row, feature)
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)
Given a MultiPoint and a RasterExtent, call the function 'f' at each pixel in the raster extent covered by the geometry.
Given a MultiPoint and a RasterExtent, call the function 'f' at each pixel in the raster extent covered by the geometry. The two arguments to the function 'f' are the column and row.
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
The options parameter controls whether to treat pixels as points or areas and whether to report partially-intersected areas.
Function to apply: f(cols, row, feature)
Given a MultiPolygon and a RasterExtent, call the function 'f' at each pixel in the raster extent covered by the geometry.
Given a MultiPolygon and a RasterExtent, call the function 'f' at each pixel in the raster extent covered by the geometry. The two arguments to the function 'f' are the column and row.
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
The options parameter controls whether to treat pixels as points or areas and whether to report partially-intersected areas.
Function to apply: f(cols, row, feature)
Given a Polygon and a RasterExtent, call the function 'f' at each pixel in the raster extent covered by the geometry.
Given a Polygon and a RasterExtent, call the function 'f' at each pixel in the raster extent covered by the geometry. The two arguments to the function 'f' are the column and row.
Implementation of the Bresenham line drawing algorithm.
Implementation of the Bresenham line drawing algorithm. Only calls on cell coordinates within raster extent.
The parameter 'skipLast' is a flag which is 'true' if the function should skip function calling the last cell (x1, y1) and false otherwise. This is useful for not duplicating end points when calling for multiple line segments.
RasterExtent used to determine cols and rows
Boolean flag
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.
The parameter 'skipLast' is a flag which is 'true' if the function should skip function calling the last cell (x1, y1) and false otherwise. This is useful for not duplicating end points when calling for multiple line segments.
LineString used to define zone
RasterExtent used to determine cols and rows
Boolean flag
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.
Geometry to rasterize
Definition of raster to create
Single value to burn
An object holding rasterizer functions.