Skip to content

Commit

Permalink
[processing] update mask computation code (fix #17161)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Oct 4, 2017
1 parent 1306125 commit f14502e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/plugins/processing/algs/qgis/ZonalStatistics.py
Expand Up @@ -226,10 +226,9 @@ def processAlgorithm(self, progress):
rasterizedArray = rasterizedDS.ReadAsArray()

masked = numpy.ma.MaskedArray(srcArray,
mask=numpy.logical_or.reduce((
mask=numpy.logical_or(
srcArray == noData,
numpy.logical_not(rasterizedArray),
numpy.isnan(srcArray))))
numpy.logical_not(rasterizedArray)))

outFeat.setGeometry(geom)

Expand Down

0 comments on commit f14502e

Please sign in to comment.