Skip to content
Browse files
Handle geos errors
  • Loading branch information
m-kuhn committed Jul 16, 2017
1 parent 102188a commit 261391d4996690711a663f2fed02b316c0d95548
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/processing/algs/qgis/
@@ -82,6 +82,9 @@ def processAlgorithm(self, parameters, context, feedback):
input_geometry = input_feature.geometry()
if input_geometry:
output_geometry = input_geometry.pointOnSurface()
if not output_geometry:
raise QgsProcessingException('Error calculating point on surface. Check the message log for GEOS errors.'))


sink.addFeature(output_feature, QgsFeatureSink.FastInsert)

0 comments on commit 261391d

Please sign in to comment.