Skip to content
Browse files

[processing] Fix pixel centroids along lines handling of null geometries

(cherry picked from commit 9e1bf68)
  • Loading branch information
nyalldawson committed Dec 15, 2018
1 parent 5edf482 commit 904c797516e8d8804eb0efc414592dc6869c6fcf
Showing with 4 additions and 0 deletions.
  1. +4 −0 python/plugins/processing/algs/qgis/
@@ -107,6 +107,10 @@ def processAlgorithm(self, parameters, context, feedback):
for current, f in enumerate(features):
if feedback.isCanceled():

if not f.hasGeometry():

geom = f.geometry()
if geom.isMultipart():
lines = geom.asMultiPolyline()

0 comments on commit 904c797

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