[GRASS-user] Divide raster map using vector line
Rich Shepard
rshepard at appl-ecosys.com
Wed Jun 7 05:33:11 PDT 2017
On Tue, 6 Jun 2017, Helmut Kudrnovsky wrote:
> What about?:
>
> -g.region by your raster
> -v.in.region to get a vector area of your raster
> -split the vector area by your road
> -Add a new attribute column and give 1 for the area which shouldn't change
> and the other the number which you want to divide
> -v.to.rast by attribute
> -r.mapcalc with some if statement
Helmut,
I thought there would be a need to transform maps from raster to vector
(or the other way) but I did not work out the appropriate sequence as you
have. This reflects my relative lack of experience doing complex processing
with grass.
Thank you very much,
Rich
More information about the grass-user
mailing list