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

1
  • 1
    What GRASS documentation have you studied so far? Did you find anything useful?
    – user30184
    Commented Dec 2, 2016 at 11:57

2 Answers 2

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.

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/

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.