GDAL-Docker icon indicating copy to clipboard operation
GDAL-Docker copied to clipboard

Install numpy before GDAL

Open GerbenJdeBoer opened this issue 5 years ago • 0 comments

Great docker file, it solved my GDAL installation issues. Suggestion: add RUN pip3 install numpy before RUN pip3 install GDAL==3.0.4 so ReadAsAssary works in this example

driver = gdal.GetDriverByName('GTiff')
dataset = gdal.Open(file_name)
band = dataset.GetRasterBand(1)
band.ReadAsArray(i1, j1, new_cols, new_rows)

thanx to https://gis.stackexchange.com/questions/153199/import-error-no-module-named-gdal-array

GerbenJdeBoer avatar Oct 02 '20 13:10 GerbenJdeBoer