package gdal

  1. Overview
  2. Docs
type t
val t : t Ctypes.typ
exception Wrong_data_type
type geotransform_t
val of_source : ?write:bool -> string -> [ `Invalid_source | `Ok of t ]
val close : t -> unit
val with_source : ?write:bool -> string -> (t -> 'a) -> [ `Invalid_source | `Ok of 'a ]
val get_driver : t -> Driver.t
val get_projection : t -> string
val get_geo_transform : t -> geotransform_t
val get_origin : geotransform_t -> float * float
val get_pixel_size : geotransform_t -> float * float
val get_rotation : geotransform_t -> float * float
val get_x_size : t -> int
val get_y_size : t -> int
val get_count : t -> int
val get_band : t -> int -> ('v, 'e) Band.Data.t -> ('v, 'e) Band.t
val get_band_data_type : t -> int -> [ `byte | `float32 | `float64 | `int16 | `int32 | `uint16 | `uint32 | `unhandled | `unknown ]
val create_copy : ?strict:bool -> ?options:string list -> t -> Driver.t -> string -> [ `Invalid_source | `Ok of t ]
val create : ?options:string list -> ?bands:(int * ('a, 'b) Band.Data.t) -> Driver.t -> string -> (int * int) -> t
val make_geo_transform : origin:(float * float) -> pixel_size:(float * float) -> rotation:(float * float) -> geotransform_t
val set_geo_transform : t -> geotransform_t -> unit
val set_projection : t -> string -> unit
val of_band : ('a, 'b) Band.t -> t
OCaml

Innovation. Community. Security.