Skip to content
Permalink
Browse files
[processing] handle same memory error in another algorithm
  • Loading branch information
alexbruy committed Mar 31, 2014
1 parent d3b4a8f commit 1c27ee319885d340f63a562de1ff4686fb2cacff
Showing with 5 additions and 1 deletion.
  1. +5 −1 python/plugins/processing/script/scripts/Extract_raster_values_to_CSV.py
@@ -65,7 +65,11 @@
progress.setPercentage(int(current * total))

rasterBand = raster.GetRasterBand(i + 1)
data = rasterBand.ReadAsArray()
try:
data = rasterBand.ReadAsArray()
except:
raise GeoAlgorithmExecutionException(
'Error reading raster data. File might be too big.')
layer.ResetReading()
feature = layer.GetNextFeature()
col = []

0 comments on commit 1c27ee3

Please sign in to comment.