Getting started
Tutorials & examples
Help & reference
Get the coordinates of the 4 corners of the raster dataset
dataset (gdal.Dataset) – raster image with georeferencing (GeoTransform at least)
geo (bool) – True to get geographical coordinates
window (bool) – True to get the window containing the corners
extent (numpy:numpy.ndarray) – corner coordinates [ul,ll,lr,ur] or window extent [xmin, xmax, ymin, ymax]
numpy:numpy.ndarray