Hi Martin,
thanks for the files. Yes, you are facing the same problem which is discussed in issue 22214 (large rasters support).
At the moment DotSpatial not optimized to use large rasters. E.g. for your rasters from Example 3 folder (34005756.TIF, ...) the memory using for every file will be:
Cheers,
Maxim.
thanks for the files. Yes, you are facing the same problem which is discussed in issue 22214 (large rasters support).
At the moment DotSpatial not optimized to use large rasters. E.g. for your rasters from Example 3 folder (34005756.TIF, ...) the memory using for every file will be:
- (ncols * nrows) bytes for raster data (assuming that raster values has Byte type)
-
(ncols * nrows * 4) bytes for raster image.
So for 6299x6299 raster total memory using will be (6299 * 6299 * 5) bytes = 200 MB. So it is not surprising, that you are getting OutOfMemoryExceptions after 5-6 files.
Cheers,
Maxim.