We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
2 parents a191d5b + 9ef91a2 commit d3b4a8fCopy full SHA for d3b4a8f
python/plugins/processing/script/scripts/Extract_raster_values_to_shapefile.py
@@ -95,7 +95,11 @@
95
progress.setPercentage(int(current * total))
96
97
rasterBand = raster.GetRasterBand(i + 1)
98
- data = rasterBand.ReadAsArray()
+ try:
99
+ data = rasterBand.ReadAsArray()
100
+ except:
101
+ raise GeoAlgorithmExecutionException(
102
+ 'Error reading raster data. File might be too big.')
103
layer.ResetReading()
104
feature = layer.GetNextFeature()
105
while feature is not None:
0 commit comments