MutliLIneString geom not supported for node creation
When trying to create notes using the shp layer produced by the tool "Create topological arc" I encountered this error :
Version de QGIS : 3.38.1-Grenoble
Révision du code : 3d4177afc6b
Version de Qt : 5.15.3
Version de Python : 3.10.12
Version de GDAL : 3.4.1
Version de GEOS : 3.10.2-CAPI-1.16.0
Version de Proj : Rel. 8.2.1, January 1st, 2022
Version de PDAL : 2.3.0 (git-version: Release)
Algorithme commencé à: 2024-08-13T09:37:05
Démarrage de l'algorithme '2 - Create topological nodes'…
Paramètres en entrée:
{ 'INPUT' : '/home/mlang/Documents/01_Recherche/Projets/2022_Arboreol/00_Data/site_etudes/haies_arvalis.shp', 'OUTPUT' : 'TEMPORARY_OUTPUT' }
Computing nodes
Traceback (most recent call last):
File "/home/mlang/.local/share/QGIS/QGIS3/profiles/default/python/plugins/hedge_tools/algorithm/data_preparation/topological_nodes.py", line 134, in processAlgorithm
graph = hG.HedgeGraph(geoms)
File "/home/mlang/.local/share/QGIS/QGIS3/profiles/default/python/plugins/hedge_tools/utils/classes/HedgeGraph.py", line 37, in __init__
self._make_graph(line_geometries)
File "/home/mlang/.local/share/QGIS/QGIS3/profiles/default/python/plugins/hedge_tools/utils/classes/HedgeGraph.py", line 54, in _make_graph
line = geom.asPolyline()
TypeError: MultiLineString geometry cannot be converted to a polyline. Only single line or curve types are permitted.
Execution failed after 0.07 secondes
I found on the internet that only geopackage format can handle single line string, so I converted the arc file into gpkg format and it worked. Could be good if either checking the input format is done or shapefile supported when using this tool.