<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font size="2"><font face="Lato">Hi Vincent,</font></font></p>
<p><font size="2"><font face="Lato">Yes it' works ! thank you for
the trick</font></font></p>
<p><font size="2"><font face="Lato">Regards,</font></font></p>
<p><font size="2"><font face="Lato">Frank</font></font></p>
<div class="moz-cite-prefix">Le 07/04/2023 à 13:37, Vincent Bain a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:135a012e243448ee3e07937c6cfc38f4dc34878e.camel@toraval.fr">
<pre class="moz-quote-pre" wrap="">Hi Franck,
I would suggest you to do sth as follows :
- if necessary add vertice along your 3d lines (v.split ?) so their
"density" is roughly equivalent to (or better smaller than) your target
raster resolution ;
- turn your vector lines to points using v.to.points (with use=vertex
argument) ;
- convert this vector point map to a raster with v.to.rast (with use=z
argument) ;
- depending on what you do afterwards with that map, you can have a
look at r.null to manage null raster cells (e.g. setnull=0).
Hope this helps,
V.
Le vendredi 07 avril 2023 à 12:45 +0200, Frank David a écrit :
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hello,
Thank you for your message. But I don't think it helps me.
I want to add a bridge elevation to my DEM. So if I create a 3d
vector
line (my bridge) with two vertex at x,y,z coordinates, and is it
possible to convert in a raster where each cells crossed by the line
inherits of his extrapolated altitude ? If no module exists to do
that,
what would be the operations necessary to achieve this result ? I
hope
it is clearer.
Frank
Le 07/04/2023 à 10:16, Helmut Kudrnovsky a écrit :
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Is there a way to rasterize a 3d line to get altitude on raster
cells
crossed by the line ?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">not quite sure what are you trying to do?
maybe:
v.drape:
Converts 2D vector features to 3D by sampling of elevation raster
map. (<a class="moz-txt-link-freetext" href="https://grass.osgeo.org/grass82/manuals/v.drape.html">https://grass.osgeo.org/grass82/manuals/v.drape.html</a>)
Additional vertices can be added to the input 2D vector map with
v.split.
or the something like:
v.fixed.segmentpoints - segment points along a vector line with
fixed distances
(<a class="moz-txt-link-freetext" href="https://grass.osgeo.org/grass82/manuals/addons/v.fixed.segmentpoints.html">https://grass.osgeo.org/grass82/manuals/addons/v.fixed.segmentpoints.html</a>
) followed by
v.what.rast - Uploads raster values at positions of vector points
to the table
(<a class="moz-txt-link-freetext" href="https://grass.osgeo.org/grass82/manuals/v.what.rast.html">https://grass.osgeo.org/grass82/manuals/v.what.rast.html</a>) or
v.sample - Samples a raster map at vector point locations
(<a class="moz-txt-link-freetext" href="https://grass.osgeo.org/grass82/manuals/v.sample.html">https://grass.osgeo.org/grass82/manuals/v.sample.html</a>).
kind regards
helmut
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
</blockquote>
</body>
</html>