3

I have points shapefile and a raster file. For each point, I want to extract the raster value which overlaps that particular point. This has been done in QGIS (link below) but I was looking for a solution for GRASS GIS.

Extracting raster values at points using Open Source GIS?

EDIT: I found the blog below to be useful and posted the solution to the question below

nmtoken
  • 13,355
  • 5
  • 38
  • 87
user53020
  • 277
  • 2
  • 10

2 Answers2

3

The GRASS documentation on v.what.rast is very clear and concise. Have you tried:

v.what.rast map=pnts raster=elevation column=height

Where pnts is your vector point layer; elevation is your raster and height is the attribute that will be updated.

dmci
  • 4,882
  • 2
  • 19
  • 31
1

Thanks for the reply. I found a useful blog for the solution.

https://pvanb.wordpress.com/2010/05/05/upload-raster-values-to-vector-points-using-grass-gis/

user53020
  • 277
  • 2
  • 10