[GRASS-user] rasterize 3d line

2023-04-07 Thread Helmut Kudrnovsky
>Is there a way to rasterize a 3d line to get altitude on raster cells >crossed by the line ? not quite sure what are you trying to do? maybe: v.drape: Converts 2D vector features to 3D by sampling of elevation raster map. (https://grass.osgeo.org/grass82/manuals/v.drape.html) Additional verti

Re: [GRASS-user] rasterize 3d line

2023-04-07 Thread Frank David
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 extrap

Re: [GRASS-user] rasterize 3d line

2023-04-07 Thread Vincent Bain
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) ; -

Re: [GRASS-user] rasterize 3d line

2023-04-07 Thread Frank David
Hi Vincent, Yes it' works ! thank you for the trick Regards, Frank Le 07/04/2023 à 13:37, Vincent Bain a écrit : 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 th

Re: [GRASS-user] rasterize 3d line

2023-04-07 Thread Zoltan
Hi Could you use the line to select the raster dem cells, then use the center of the selected cells to snap back to your line and use these snap coordinates to proportion the zvalue of the snapped line segment? HTH Zoltan ⁣Sent from Blue ​ On 07 Apr 2023, 14:47, at 14:47, Vincent Bain wrote: