Skip to content

Commit

Permalink
[processing] raise error if cellsize is not defined in interpolation
Browse files Browse the repository at this point in the history
algorithm
  • Loading branch information
alexbruy committed Jan 13, 2017
1 parent 8994877 commit ce88da6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/processing/algs/qgis/TinInterpolation.py
Expand Up @@ -165,6 +165,10 @@ def processAlgorithm(self, feedback):
raise GeoAlgorithmExecutionException( raise GeoAlgorithmExecutionException(
self.tr('You need to specify at least one input layer.')) 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]) xMin = float(extent[0])
xMax = float(extent[1]) xMax = float(extent[1])
yMin = float(extent[2]) yMin = float(extent[2])
Expand Down

0 comments on commit ce88da6

Please sign in to comment.