Skip to main content

Module raster

Module raster 

Source
Expand description

§raster

Raster operations on the core::raster IR — the operations Zebflow’s tile server composes to ingest user uploads and serve tiles.

§Modules

  • pixel — raw byte ↔ f64 codec per PixelType. The bridge that lets every kernel work in f64 regardless of source dtype.
  • resample — six resampling kernels (Nearest / Bilinear / Cubic / Lanczos / Average / Mode) + tile-to-tile resize. The foundation everything else builds on.
  • pyramid — generates overview levels via repeated downsampling. Used by the writer to auto-build COG pyramids.
  • warp — reproject a RasterTile to a different CRS via geonative-proj + a resampling kernel. The piece that lets convert --to-crs work for raster.

Re-exports§

pub use pyramid::build_overviews;
pub use pyramid::PyramidOptions;
pub use resample::resample_tile;
pub use resample::sample;
pub use warp::compute_target_grid;
pub use warp::warp_tile;
pub use warp::WarpOptions;

Modules§

pixel
Pixel value codec — convert raw band bytes ↔ f64 for resampling math.
pyramid
Pyramid (overview) generation.
resample
Resampling kernels — the math that makes pyramid building and raster warp possible.
warp
Raster warp — reproject a raster from one CRS to another using geonative-proj for the coordinate transform plus a resampling kernel for the pixel interpolation.