On 03/28/2012 08:11 PM, Helena Herrera wrote:
When you say "associate" If you mean to add the raster values to a column in the point vector attribute table, then v.what.rast is what you're looking for.
Create a new raster with r.neighbors then run v.what.rast again to upload these 3x3 neighborhood values to another column in the point vector.
Here are the steps: v.db.addcol vector_map col="rast_val double, rast_val_3x3 double" v.what.rast vector_map rast=raster_map col=rast_val r.neighbors raster_map out=raster_map_3x3 # assumes averaging a 3x3 window v.what.rast vector_map rast=raster_map_3x3 col=rast_val_3x3
-- Micha Silver GIS Consultant, Arava Development Co. http://www.surfaces.co.il |
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
