Skip to content
Permalink
Browse files

[processing] update mask computation code (fix #17161)

  • Loading branch information
alexbruy committed Oct 4, 2017
1 parent 1306125 commit f14502e441173dbb604178421549bfe5a0bb59ae
Showing with 2 additions and 3 deletions.
  1. +2 −3 python/plugins/processing/algs/qgis/ZonalStatistics.py
@@ -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)

0 comments on commit f14502e

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