New answers tagged

0

The issue was resolved in the gdal-dev mailing list, here's how: create the MEM driver and create the mem image with 0 bands Get the pointer to your allocated memory with CPLPrintPointer Use AddBand from the dataset to add the bands e.g. (error checking omitted) unsigned int numbands = 0; char **papszOptions = NULL; GDALDriver *poDriver = ...



Top 50 recent answers are included