Module Gdal.Warp

Raster Interpolation and Resampling

type resample_t =
| Nearest_neighbor
| Bilinear
| Cubic
| Cubic_spline
| Lanczos
exception Warp_error
module Options : sig ... end
module Operation : sig ... end
type warp_output_t = {
geo_transform : Geo_transform.t;
dims : int * int;
}

Suggested data set specifications for a warp destination

val suggested_warp_output : Data_set.t ‑> _ Transform.t ‑> warp_output_t

suggested_warp_output ds transform will suggest dimensions and Geo_transform.t parameters for a destination data set to warp ds into based on the dimensions of ds and the parameters defined in transform.

val reproject_image : ?⁠memory_limit:float ‑> ?⁠max_error:float ‑> ?⁠options:_ Options.t ‑> ?⁠src_wkt:string ‑> ?⁠dst_wkt:string ‑> src:Data_set.t ‑> dst:Data_set.t ‑> resample_t ‑> unit

reproject_image ?memory_limit ?max_error ?options ?src_wkt ?dst_wkt ~src ~dst alg reprojects the image src to dst, overwriting dst in the process.

val create_and_reproject_image : ?⁠memory_limit:float ‑> ?⁠max_error:float ‑> ?⁠options:_ Options.t ‑> ?⁠src_wkt:string ‑> ?⁠dst_wkt:string ‑> ?⁠create_options:string list ‑> Data_set.t ‑> filename:string ‑> Driver.t ‑> resample_t ‑> unit

create_and_reproject_image ?memory_limit ?max_error ?options ?src_wkt ?dst_wkt ?create_options src filename driver alg reprojects the image src to filename.

val auto_create_warped_vrt : ?⁠src_wkt:string ‑> ?⁠dst_wkt:string ‑> ?⁠max_error:float ‑> ?⁠options:_ Options.t ‑> Data_set.t ‑> resample_t ‑> Data_set.t

auto_create_warped_vrt ?src_wkt ?dst_wkt ?max_error ?options src alg creates a virtual dataset warped from src.