[GRASSLIST:8447] New GRASS Module: v.drape
Dylan Beaudette
dylan at iici.no-ip.org
Wed Sep 28 17:20:29 EDT 2005
Hi Radim and Markus,
Per Radim's suggestions I have created a new module called v.drape, wich will
create a 3D vector from a 2D vector and an elevation surface. Vector code was
borrowed from v.split, and raster sampling was based on code from v.sample.
Attached is an initial version of the source code, which seams to work fine
for lines. I still need to add support for points, and add some error
checking. Also, I have commented using Doxygen-style formatting, for later
programmer's manual creation. If this looks ok to you guys, I will write up
the description.html as soon as I can.
The new command works like this:
v.drape -C in=trails output=trails3d rast=elev_meters
A new 3D vector file is created, with a copy of the original DB table.
Cheers,
--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
On Wednesday 28 September 2005 12:09 am, Radim Blazek wrote:
> Hi,
> I intended
> v.drape input=my2d rast=dem output=my3d
> v.out.pov input=my3d
> Would it be a problem to create one more map?
>
> But if you put most of functionality to
> G_sample_raster(raster_file, method, point_x, point_y)
> it is ok for me also to add it to v.out.pov.
> Also it would be nice if you could contribute also v.drape
> (should be simple with G_sample_raster).
>
> Note that output of v.drape (or v.to.3d?) can be also used in
> nviz.
>
> Radim
>
More information about the grass-user
mailing list