<div dir="ltr"><div>Thanks Nyall. I think I had a misunderstanding in that the XY routines were the preferred method to use unless you have Z/M dimensions. I will look at changing my code.<br><br></div>Calvin<br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 5, 2018 at 6:06 PM Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 5 Dec 2018 at 02:52, C Hamilton <<a href="mailto:adenaculture@gmail.com" target="_blank">adenaculture@gmail.com</a>> wrote:<br>
><br>
> QgsGeometry has the following static functions<br>
><br>
> QgsGeometry.fromPolylineXY( list of QgsPointXY)<br>
> QgsGeometry.fromMultiPolylineXY( list of QgsPointXY lists)<br>
><br>
> If I am working with QgsPoint rather than QgsPointXY there is<br>
><br>
> QgsGeometry.fromPolyline( list of QgsPoint)<br>
><br>
> However there is not a similar multi polyline function. Why not?<br>
<br>
Because there's been no demand for this, until now. But in general all<br>
those fromPolylineXY etc methods should be avoided wherever possible.<br>
They are very slow (lots of list allocations) and don't handle Z/M<br>
dimensions.<br>
<br>
You're better to work directly with the QGIS geometry subclasses like<br>
QgsLineString, QgsMultiLineString instead.<br>
<br>
Nyall<br>
<br>
<br>
><br>
> QgsGeometry.fromMultiPolyline( list of QgsPoint list)<br>
><br>
> What is the proper way to implement this?<br>
><br>
> Thanks!!!!<br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>