Skip to content
Permalink
Browse files

[processing] raise error if cellsize is not defined in interpolation

algorithm
  • Loading branch information
alexbruy committed Jan 13, 2017
1 parent 8994877 commit ce88da6eb9f9b9661a6e85be2f2d400717b35a90
Showing with 4 additions and 0 deletions.
  1. +4 −0 python/plugins/processing/algs/qgis/TinInterpolation.py
@@ -165,6 +165,10 @@ def processAlgorithm(self, feedback):
raise GeoAlgorithmExecutionException(
self.tr('You need to specify at least one input layer.'))

if cellsizeX == 0.0 or cellsizeY == 0.0:
raise GeoAlgorithmExecutionException(
self.tr('Cellsize should be greater than 0.'))

xMin = float(extent[0])
xMax = float(extent[1])
yMin = float(extent[2])

0 comments on commit ce88da6

Please sign in to comment.
You can’t perform that action at this time.