<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi,<div><br><div>This new line is a 3D Line.  This means that every vertex has x,y,z coordinates.  If you want to put that in a field, this is a bit complicated as every vertex has a z dimension. </div><div><br></div><div>You could easily use the field calculator to extract the first node or last node z value or could get an average of every z value for the line.  You could also “explode” the line. This would split the line in multiple parts having a maximum of 2 nodes (vertices). Then you could extract the first or last node z value.</div><div><br></div><div>Hope this helps.</div><div><br><div dir="ltr">Nicolas Cadieux<div><a href="https://gitlab.com/njacadieux">https://gitlab.com/njacadieux</a></div></div><div dir="ltr"><br><blockquote type="cite">Le 6 mars 2022 à 01:07, krishna Ayyala <ayyalakrishna@gmail.com> a écri<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Nicolas, I ran the Drape tool as shown below. It resulted in a new  line feature called "Draped" and added to my map. But this new feature has exactly same attributes as that of "Lines" feature. i.e. it does not have any new field such as Z added to the attribute table. <div>Regards.</div><div><div><br></div><div><div><image.png></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 5, 2022 at 7:07 PM Nicolas Cadieux <<a href="mailto:njacadieux.gitlab@gmail.com">njacadieux.gitlab@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi,<div><br><div>Go in processing and search for “drape”.<br><br><div dir="ltr">Nicolas Cadieux<div><a href="https://gitlab.com/njacadieux" target="_blank">https://gitlab.com/njacadieux</a></div></div><div dir="ltr"><br><blockquote type="cite">Le 5 mars 2022 à 14:48, krishna Ayyala via Qgis-user <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hello,<div>I have a DEM. I have a vector layer on top of the DEM. This vector layer has 100 lines numbered from 1 to 100. Is there a tool that can generate Elevation and grade profiles along each of these lines? Is there a way to automate this instead of generating each profile individually?</div><div><br></div><div>Regards.</div></div>
<span>_______________________________________________</span><br><span>Qgis-user mailing list</span><br><span><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a></span><br><span>List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br><span>Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br></div></blockquote></div></div></div></blockquote></div>
</div></blockquote></div></div></body></html>