[Qgis-user] Add distance to shapefile M

Stewart Holt stewartbholt at gmail.com
Fri Mar 10 12:25:23 PST 2023


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 at 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 at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230310/23ae0a42/attachment.htm>


More information about the QGIS-User mailing list