Skip to content

Commit ec8e35e

Browse files
committedJul 22, 2016
[processing] fix buffer tool
(cherry picked from commit 9976c30)
1 parent 792cbb2 commit ec8e35e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎python/plugins/processing/algs/qgis/Buffer.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ def buffering(progress, writer, distance, field, useField, layer, dissolve,
5757
value = distance
5858

5959
inGeom = QgsGeometry(inFeat.geometry())
60-
if inGeom.isGeosEmpty() or not inGeom.isGeosValid():
61-
ProcessingLog.addToLog(ProcessingLog.LOG_WARNING, 'Feature {} has empty or invalid geometry. Skipping...'.format(inFeat.id()))
60+
if inGeom.isGeosEmpty():
61+
ProcessingLog.addToLog(ProcessingLog.LOG_WARNING, 'Feature {} has empty geometry. Skipping...'.format(inFeat.id()))
62+
continue
63+
if not inGeom.isGeosValid():
64+
ProcessingLog.addToLog(ProcessingLog.LOG_WARNING, 'Feature {} has invalid geometry. Skipping...'.format(inFeat.id()))
6265
continue
6366
outGeom = inGeom.buffer(float(value), segments)
6467
if first:

0 commit comments

Comments
 (0)
Please sign in to comment.