Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Gdal.Geo_transform
SourcePixel <-> coordinate transformation
get t
returns the geotransform array associated with t
.
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.
set t
sets the geotransform array for t
.
apply t ~x ~y
returns (x, y)
translated by t
, generally from native coordinates to pixel coordinates or from pixel coordinates to native coordinates.