mirror of
https://github.com/qgis/QGIS.git
synced 2025-06-18 00:04:02 -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
|
value = distance
|
||||||
|
|
||||||
inGeom = QgsGeometry(inFeat.geometry())
|
inGeom = QgsGeometry(inFeat.geometry())
|
||||||
if inGeom.isGeosEmpty() or not inGeom.isGeosValid():
|
if inGeom.isGeosEmpty():
|
||||||
ProcessingLog.addToLog(ProcessingLog.LOG_WARNING, 'Feature {} has empty or invalid geometry. Skipping...'.format(inFeat.id()))
|
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
|
continue
|
||||||
outGeom = inGeom.buffer(float(value), segments)
|
outGeom = inGeom.buffer(float(value), segments)
|
||||||
if first:
|
if first:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user