<div dir="ltr"><div dir="ltr">Andrea,<br></div><div>Thanks a lot for your help.</div><div>Regards.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 6, 2022 at 5:49 AM Andrea Giudiceandrea via Qgis-user <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</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>
<blockquote type="cite"><b style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">krishna Ayyala</b><span><span></span></span><br style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">
<i>Sat Mar 5 22:06:54 PST
2022</i><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"></span>
<hr>
<pre style="white-space:pre-wrap;color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">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.
</pre>
</blockquote>
<br>
Hi krishna Ayyala,<br>
please read the tool documentation at
<a href="https://docs.qgis.org/3.22/en/docs/user_manual/processing_algs/qgis/vectorgeometry.html#qgissetzfromraster" target="_blank">https://docs.qgis.org/3.22/en/docs/user_manual/processing_algs/qgis/vectorgeometry.html#qgissetzfromraster</a><br>
<br>
As written in the documentation, the "Drape" tool does not add a new
field with the Z coordinate value to the attribute table. It adds
the Z coordinate value to each vertex in each feature geometry of
the vector layer overlapping the raster layer.<br>
<br>
In general, if you need to copy the Z coordinate value of the
feature geometry in a field of the attribute table, you can use the
"Extract Z values" tool with the layer containing the feature
geometries with vertices that have the Z coordinate value.<br>
<br>
Anyway, consider that a line type feature geometry is made by more
than one vertex, and that the "Extract Z values" tool stores only
one value for each input feature, so if you want to store the Z
coordinate value for each vertex of each line type feature geometry
in a field of the attribute table, then you would probably need to
first extract the vertices of the line layer to a point layer and
after that extract the Z value of each point.<br>
<br>
Alternatively you could use the field calculator to perform more
complex different calculation, or you could afterward perform other
data processing such as e.g. aggregate the Z values of the vertices
of each input line feature.<br>
<br>
Regards.<br>
<br>
Andrea<br>
</div>
_______________________________________________<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></div>