loading large Tiff file

Oct 14, 2011 at 2:05 PM


I have troubles loading a large Tiff File (70mb, 19092 x 26730 Pixels, + .tfw worldfile). I tried using the GDAL Data Provider but it keeps crashing. I tried debbuging it and it seems that some byte arrays are just to small and it ends with an index out or range exception.

I read something about the PyramidImage class but cant find an example on how to use this class as a layer or if it is even possible to create pyramid images and display them.


I'll appreciate any help.

Oct 17, 2011 at 10:12 AM
Edited Oct 17, 2011 at 10:14 AM


I get a "System.OutOfMemoryException" in "DotSpatial.Data.Rasters.GdalExtension\GdalImageSource.cs" at Line 279:

byte[] vals = new byte[width * height * 4];

height is "19092" and width is "3352"