New answers tagged

0 votes
Accepted

After changed datatype from gdal.GDT_UInt32 to gdal.GDT_Byte, I had GDALDataset::GetRasterBand(2) - Illegal band #

Looking at the docs, the signature is: Driver.Create(path, xsize, ysize, bands, eType, options) You seem to be feeding in a datatype as the bands argument. GDAL datatypes are represented using an ...
user avatar
  • 4,098

Top 50 recent answers are included