type t
= private (float, Bigarray.float64_elt, Bigarray.c_layout) Bigarray.Array1.t
Pixel <-> coordinate transformation
val get_pixel_size : t ‑> float * float
get_pixel_size t
returns the (x, y)
pixel size of the rasters in t
.
val make : origin:(float * float) ‑> pixel_size:(float * float) ‑> rotation:(float * float) ‑> t
make ~origin ~pixel_size ~rotation
creates a geotransform
with the given specifications.
val apply : t ‑> x:float ‑> y:float ‑> float * float
apply t ~x ~y
returns (x, y)
translated by t
, generally from native
coordinates to pixel coordinates or from pixel coordinates to native
coordinates.