rusterize
rusterize is an extremely fast, trait-based, rasterization engine for geo::Geometry.
Geometries can be rasterized as a DenseArray (a materialized raster) or a SparseArray, containing the band/row/col value triplets
of all lazily burned pixels. A SparseArray can later be materialized into a raster, therefore avoiding large memory allocations
until it's actually needed.
Installation
[]
= "0.1"
To include polars support:
[]
= { = "0.1", = ["polars"] }
Example
Build a RasterInfo describing the output grid, wrap it in a RasterizeContext, then call rasterize on any slice of geometries.
The target type (DenseArray or SparseArray) selects the output encoding and data type. The PixelFunction dictates what happens
to overlapping pixels. FieldSource represents the values to be burned.
use *;
use ;
Feature flags
polars: AddsFieldSource::Columnfor burning apolarscolumn.