Mappers Warp
Very simplistic tool for reprojecting maps, based on the GdalWarp, using mappers for geographic projection.
This tool is effectively a reimplementation of GdalWarp code - all credit for the algorithm creation goes to the GDAL developers.
As you can see, this tool is not very comprehensively documented - if you would like to add something useful to the documentation feel free to open a PR on Github.
Features
multithreading- enables parallel functions forWarper. Requiresrayon, but can provide significant performance improvements for some rasters.io- enables support for saving and loadingWarperfrom file. Requiresrkyv, but can be useful when you want to initializeWarperahead-of-time.
Example
See more usage examples in integration tests.
use ;
use ;
use Array2;
let src_proj = LongitudeLatitude;
let tgt_proj = builder
.ref_lonlat
.standard_parallels
.ellipsoid
.initialize_projection?;
let source_bounds =
new?;
let target_bounds = new?;
let warper = ?;
let source_raster = zeros;
let target_raster = warper.warp_ignore_nodata?;