<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello Everyone,<div><br></div><div>I have been trying to get a few raster files loaded via GDAL but it seems that all I get back from GDALRasterIO is a bunch of 1’s which then get set as 255 or white.</div><div><br></div><div>The call I am using is:</div><div>    GDALRasterIO(ds->GetRasterBand(1), GF_Read,<br>                 0, 0, pixWide, pixHigh,<br>                 fileData, pixWide, pixHigh, GDT_Byte, 0, 0);</div><div><br></div><div>The meta data for the chart looks valid:</div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>BSB_KNP=SC=458596,GD=NAD83,PR=MERCATOR,PP=28.867,PI=30.000,SP=,SK=0.0021196,TA=90.0021196,UN=FATHOMS,SD=MEAN LOWER LOW WATER,DX=45.86,DY=45.86</b></div><br></div><div>So I would expect the data to be getting filled correctly.</div><div><br></div><div>OS X 10.9 with Xcode 5.1.1.</div><div><br></div><div>If anyone has a suggestion or could point me to a working Objective-C example that would be great.</div><div><br></div><div>Thanks,</div><div>Patrick</div></body></html>