[GRASS-user] *Direction* to nearest vector?
Daniel Victoria
daniel.victoria at gmail.com
Tue Dec 1 06:25:57 EST 2009
Just a guess...
Maybe v.distance? Create a point raster, on point for each cell in
your raster. Run v.distance and look for the to_angle value
calculated. Then convert the points back to raster....
v.distance man page...
http://www.ces.iisc.ernet.in/grass/grass64/manuals/html64_user/v.distance.html
Or you could try something with the r.distance module and the
east1,north1 values....
Good luck
daniel
On Mon, Nov 30, 2009 at 4:44 PM, Jonathan Greenberg
<greenberg at ucdavis.edu> wrote:
> GRASSers:
>
> Is there any way to generate a raster in which the pixel values are the
> directions (in radians or degrees) to the nearest vector object, e.g. a
> point, line, or polygon ("nearest" being calculated as Euclidean distance)?
> --j
>
> --
>
> Jonathan A. Greenberg, PhD
> Postdoctoral Scholar
> Center for Spatial Technologies and Remote Sensing (CSTARS)
> University of California, Davis
> One Shields Avenue
> The Barn, Room 250N
> Davis, CA 95616
> Phone: 415-763-5476
> AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
More information about the grass-user
mailing list