Module Gdal.Warp.Operation

Warp Operations

type 'a t
val create : 'a Options.t ‑> 'a t

create o creates a warp operation value based on the given options.

val warp : ?⁠offset:(int * int) ‑> ?⁠size:(int * int) ‑> _ Options.t ‑> unit
val warp_multi : ?⁠offset:(int * int) ‑> ?⁠size:(int * int) ‑> _ Options.t ‑> unit

Convenience functions for carrying out a warping operation. They use the chunk_and_warp_* functions internally.

val chunk_and_warp_image : _ t ‑> offset:(int * int) ‑> size:(int * int) ‑> unit
val chunk_and_warp_multi : _ t ‑> offset:(int * int) ‑> size:(int * int) ‑> unit

chunk_and_warp_* t ~offset ~size carry out the warp operation t by chopping up the processing into chunks which are small enough to fit in the memory limits specified in the Options.t value used to create t.

val warp_region : _ t ‑> dst_offset:(int * int) ‑> dst_size:(int * int) ‑> src_offset:(int * int) ‑> src_size:(int * int) ‑> unit

warp_region op ~dst_offset ~dst_size ~src_offset ~src_size warps the defined region according to op.

val warp_region_to_buffer : ?⁠buffer:('e'v, Bigarray.c_layout) Bigarray.Array2.t ‑> _ t ‑> ('e'vBand.Data.t ‑> dst_offset:(int * int) ‑> dst_size:(int * int) ‑> src_offset:(int * int) ‑> src_size:(int * int) ‑> ('e'v, Bigarray.c_layout) Bigarray.Array2.t

warp_region_to_buffer is like warp_region except that it writes the result to buffer.