Module Gdal.Spatial_reference

Spatial References

These functions come from OGR C API's OSR* namespace.

type t
val t : t Ctypes.typ
val t_opt : t option Ctypes.typ
exception Spatial_reference_error
val make : [ `proj4 | `wkt | `name ] ‑> string ‑> t

make kind def will create a new t from def.

val to_proj4 : t ‑> string

to_proj4 t returns the PROJ.4 string definition matching t.

val to_wkt : ?⁠pretty:bool ‑> ?⁠simplify:bool ‑> t ‑> string

to_wkt ?pretty ?simplify t returns the WKT string definition matching t.