dgoedkoop / joinmultiplelines

QGis Join Multiple Lines
BSD 2-Clause "Simplified" License
10 stars 5 forks source link

Uncaught ValueError: Null geometry cannot be converted to a polyline. #12

Open diledsys opened 2 years ago

diledsys commented 2 years ago

Steps to reproduce

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "C:\Users/di/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\joinmultiplelines\joinmultiplelines.py", line 185, in run
    newgeom = self.Step(newgeom, geomlist)
  File "C:\Users/di/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\joinmultiplelines\joinmultiplelines.py", line 109, in Step
    base_lastvertex = self.LastVertex(geom)
  File "C:\Users/di/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\joinmultiplelines\joinmultiplelines.py", line 100, in LastVertex
    return geom.vertexAt(self.LastVertexIndex(geom))
  File "C:\Users/di/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\joinmultiplelines\joinmultiplelines.py", line 97, in LastVertexIndex
    return len(geom.asPolyline()) - 1
ValueError: Null geometry cannot be converted to a polyline.

joinmultiplelines Version 0.4.1, QGIS 3.24.3-Tisler on Windows 10