Skip to content
Browse files

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

  • Loading branch information
nyalldawson committed Dec 17, 2018
1 parent d1e9ce1 commit 9e1bf68902e990d1806185a3550856a4d064af89
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 9e1bf68

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