[GRASSLIST:2812] Re: v.what.rast bug?

Radim Blazek blazek at itc.it
Tue Mar 2 13:30:52 EST 2004


On Tuesday 02 March 2004 17:22, Christopher Fonnesbeck wrote:
> I have a raster layer of watershed sub-basins that have the sub-basin
> area as the raster value, and a stream layer into which I am trying
> upload the corresponding sub-basin area values. However, when I run
> "v.what.rast vect=streams rast=basins_area col=wsarea", the specified
> column in the vector attribute table is filled with zeros, rather than
> the areas. I have verified that the raster values are actually the
> sub-basin areas, using d.what.rast. Has anyone run into this problem,
> or know of an obvious solution?

Description:
 Upload raster values at positions of vector points to the table.

_POINTS_, one line may intersect many cells with different raster values.
Do you want to get around r.to.vect problem? You can generate points
in the middle of lines using v.segment.

Radim




More information about the grass-user mailing list