Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: Problem loading raster files

$
0
0
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:
  1. (ncols * nrows) bytes for raster data (assuming that raster values has Byte type)
  2. (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.
At the moment you can try to use x64 PC with more RAM memory, or use rasters with less number of cells.

Cheers,
Maxim.

Viewing all articles
Browse latest Browse all 3973


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>