Skip to content
Browse files

[processing] Don't abort heatmap if adding single feature fails

  • Loading branch information
nyalldawson committed Jan 2, 2017
1 parent ef0131d commit a4838e1a953b31aa0e7a77807bacd2fc23e8f8c5
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/processing/algs/qgis/
@@ -32,6 +32,7 @@
from qgis.core import QgsFeatureRequest
from qgis.analysis import QgsKernelDensityEstimation

from processing.core.ProcessingLog import ProcessingLog
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import ParameterVector
@@ -166,8 +167,8 @@ def processAlgorithm(self, progress):
total = 100.0 / len(features)
for current, f in enumerate(features):
if kde.addFeature(f) != QgsKernelDensityEstimation.Success:
raise GeoAlgorithmExecutionException('Error adding feature to heatmap'))
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,'Error adding feature with ID {} to heatmap').format(

progress.setPercentage(int(current * total))

0 comments on commit a4838e1

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