Hi Even,
That fixes the C code, thank you very much.
But what about the C++ line just below the C++ comment? See the previously
attached debug image window. The “data” class members are corrupted.
I started out with C++, and since it did not work I tried C.
Thank you.
Raymond Castonguay 520-940
> int nx = GDALGetRasterXSize(hDriver);
> int ny = GDALGetRasterYSize(hDriver);
> int nz = GDALGetRasterCount(hDriver);
That's the wrong part. You should use the dataH handle.
--
Spatialys - Geospatial professional services
http://www.spatialys.com
___
See code below:
I downloaded GDAL 3.x for Windows from the GISInternals website.
I have Windows 10 64Bit, Visual Studio 2019 C++
The code below loads a data file after calling GDALAllRegister();There are no
runtime or GDAL errors reported.But the header results are incorrect and
corrupted. See at