<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body>
<div>Hi Even,</div><div><br></div><div>That fixes the C code, thank you very much.</div><div><br></div><div>But what about the C++ line just below the C++ comment? See the previously attached debug image window. The “data” class members are corrupted. </div><div><br></div><div>I started out with C++, and since it did not work I tried C. </div><div><br></div>Thank you.<br><br><div>Raymond Castonguay </div><div>520-940-3912</div><div>Raymond.castonguay@yahoo.com</div><div><br></div><div>Confidential: This information is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.  If you are not the addressee, any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited.  If you have received this transmission in error please notify the sender immediately and delete this e-mail.</div><div><br></div><br><p class="yahoo-quoted-begin" style="font-size: 15px; color: #715FFA; padding-top: 15px; margin-top: 0">On Saturday, October 10, 2020, 3:44 AM, Even Rouault <even.rouault@spatialys.com> wrote:</p><blockquote class="iosymail"><div id="yiv3386852991"><div class="yiv3386852991yqt0198705840" id="yiv3386852991yqtfd78944"><style type="text/css">
#yiv3386852991 p, #yiv3386852991 li {white-space:pre-wrap;}
</style></div><div><div class="yiv3386852991yqt0198705840" id="yiv3386852991yqtfd52058">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;">> int nx = GDALGetRasterXSize(hDriver);</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;">> int ny = GDALGetRasterYSize(hDriver);</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;">> int nz = GDALGetRasterCount(hDriver);</p></div>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;">That's the wrong part. You should use the dataH handle.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;">-- </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;">Spatialys - Geospatial professional services</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;">http://www.spatialys.com</p></div></div><blockquote></blockquote></blockquote>
</body></html>