Skip to content
Browse files

[processing] Add NULL geometry support to centroid algorithm

  • Loading branch information
m-kuhn committed Feb 4, 2016
1 parent ce0d610 commit cd10c6c88ec9ba8fe0df8f8c87cc01864efe2499
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/qgis/
@@ -68,10 +68,10 @@ def processAlgorithm(self, progress):
attrs = inFeat.attributes()

if not inGeom:
outGeom = QgsGeometry()
outGeom = QgsGeometry(None)
outGeom = QgsGeometry(inGeom.centroid())
if outGeom is None:
if not outGeom:
raise GeoAlgorithmExecutionException('Error calculating centroid'))

0 comments on commit cd10c6c

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