The need is to put cumulative distance on each point, so P1.M would be zero, P2.M would be the 3D distance from P1 to P2 and P3.M would be the sum of P2.M plus the 3D distance from P2 to P3, etc. The M value of each point would be the cumulative 3D distance from P1.
Uses of the M value are the ability to click on line and get distance and in producing elevation profiles. Stewart On Fri, Mar 10, 2023 at 2:44 PM Andrea Giudiceandrea via QGIS-User < qgis-user@lists.osgeo.org> wrote: > Hi Stewart, > it is not clear to me exactly what to want to achieve. If you want to > calculate the 3d length of a 3d line, then you can use the length3d > function > > https://docs.qgis.org/3.22/en/docs/user_manual/expressions/functions_list.html#length3d > > Best regards. > > Andrea Giudiceandrea > _______________________________________________ > QGIS-User mailing list > QGIS-User@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user >
_______________________________________________ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user