mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] fix buffer tool
This commit is contained in:
parent
e8bac30230
commit
9976c30c9a
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user