Skip to content
Permalink
Browse files

[processing] fix buffer tool

(cherry picked from commit 9976c30)
  • Loading branch information
alexbruy committed Jul 22, 2016
1 parent 792cbb2 commit ec8e35e4d88390f6884fdca7f70b06df1396c3d8
Showing with 5 additions and 2 deletions.
  1. +5 −2 python/plugins/processing/algs/qgis/Buffer.py
@@ -57,8 +57,11 @@ def buffering(progress, writer, distance, field, useField, layer, dissolve,
value = distance

inGeom = QgsGeometry(inFeat.geometry())
if inGeom.isGeosEmpty() or not inGeom.isGeosValid():
ProcessingLog.addToLog(ProcessingLog.LOG_WARNING, 'Feature {} has empty or invalid geometry. Skipping...'.format(inFeat.id()))
if inGeom.isGeosEmpty():
ProcessingLog.addToLog(ProcessingLog.LOG_WARNING, 'Feature {} has empty geometry. Skipping...'.format(inFeat.id()))
continue
if not inGeom.isGeosValid():
ProcessingLog.addToLog(ProcessingLog.LOG_WARNING, 'Feature {} has invalid geometry. Skipping...'.format(inFeat.id()))
continue
outGeom = inGeom.buffer(float(value), segments)
if first:

0 comments on commit ec8e35e

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