Closed CEZERT closed 2 years ago
Hi @CEZERT ,
First of all thanks for the work on the plugin to bring it at QGis 3 and more.
I test your version of the plugin and i didn't see the tool "insert_mult_lines". Because when i test it on QGis the tool "insert_mult_lines" create only one line for all points selected but the fisrt version of the plugin (QGis 2) if i select points and i use the tool "insert_mult_lines", it create a line between each points selected. Do you have some stuff for implement this feature ?
Have a nice day :)
Hi @CEZERT,
I have suggestion about this part of code:
geom_list = []
if layer.wkbType() == QgsWkbTypes.MultiLineString:
geom_list.append(QgsGeometry.fromMultiPolylineXY(lines))
else:
for line in lines:
geom_list.append(QgsGeometry.fromPolylineXY(line))
Replace by this one:
geom_list = []
if layer.wkbType() == QgsWkbTypes.MultiLineString:
for line in lines:
geom_list.append(QgsGeometry.fromPolylineXY(line))
else:
geom_list.append(QgsGeometry.fromMultiPolylineXY(lines))
In that situation it work perfectly on QGis 3.16.9, need to be test with other version. Open to suggestion ;)
PS: I made a PR with the modifications https://github.com/nextgis/ReconstructLine/pull/14
Plugin is now available for QGIS3 in standard repository. Thanks for your contribution.