Skip to content
Permalink
Browse files

Nicer debugging from boundary alg

  • Loading branch information
nyalldawson committed Jul 12, 2017
1 parent 5c844a5 commit a87cc53e962095722f5d57ec5697da785bb9abb9
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/processing/algs/qgis/Boundary.py
@@ -93,10 +93,10 @@ def processAlgorithm(self, parameters, context, feedback):
if input_geometry:
output_geometry = QgsGeometry(input_geometry.geometry().boundary())
if not output_geometry:
raise GeoAlgorithmExecutionException(
self.tr('Error calculating boundary'))

output_feature.setGeometry(output_geometry)
feedback.reportError(self.tr('No boundary for feature {} (possibly a closed linestring?)').format(input_feature.id()))
output_feature.clearGeometry()
else:
output_feature.setGeometry(output_geometry)

sink.addFeature(output_feature, QgsFeatureSink.FastInsert)
feedback.setProgress(int(current * total))

0 comments on commit a87cc53

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