I am using GDAL to read a geotiff file.
I would like to read the coordinate Z of my geotiff file.
has anyone worked on a case before ?
Regard,
I am using GDAL to read a geotiff file.
I would like to read the coordinate Z of my geotiff file.
has anyone worked on a case before ?
Regard,
I have managed to read the elavation from osgeo import gdal
gdal.UseExceptions()
ds = gdal.Open('test_data.tif')
band = ds.GetRasterBand(1)
elevation = band.ReadAsArray()
print elevation.shape
print elevation