This project has moved. For the latest updates, please go here.

RasterIO buffer double[] returns incorrect values

Topics: General Topics
Nov 1, 2006 at 3:35 PM
I'm using the GDALWrapper extension to read a .TIF raster containing elevation values. The image stores them as doubles so I'm using a double[] buffer in RasterIO, but it seems to corrupt the values. If I use a byte[] buffer, the values obviously get truncated, but at least they're closer to the actual value. Was wondering if anyone has run into this problem and could suggest what I might be doing wrong. Thanks.