Skip to content
Browse files
added error handling for too big rasters
I ran into memory problems with big rasters. Now the error message points the user to this potential error source.
  • Loading branch information
anitagraser committed Mar 31, 2014
1 parent 04d7169 commit 9ef91a222cc5ff1943f7b7c35d612d7310d74adf
Showing 1 changed file with 5 additions and 1 deletion.
@@ -95,7 +95,11 @@
progress.setPercentage(int(current * total))

rasterBand = raster.GetRasterBand(i + 1)
data = rasterBand.ReadAsArray()
data = rasterBand.ReadAsArray()
raise GeoAlgorithmExecutionException(
'Error reading raster data. File might be too big.')
feature = layer.GetNextFeature()
while feature is not None:

0 comments on commit 9ef91a2

Please sign in to comment.