I am working with QGIS. I have a file with many points, and I would like to sample their values from a raster.

How can I add a column in the points' attribute table and fill it with the raster values?

  • Processing Toolbox, search for Sample raster values, et voilà?
    – Gabriel
    Jan 27, 2020 at 20:47

1 Answer 1


Use the "Sample Raster Values" QGIS Processing Algorithm.

The help for the tool states:

Sample raster values

This algorithm creates a new vector layer with the same attributes of the input layer and the raster values corresponding on the point location.

If the raster layer has more than one band, all the band values are sampled.

Preview of the tool:
enter image description here

General usage of the tool:
Select your Input Point Layer (if not auto-selected)
Select your Raster layer (Local rasters only, can not be a WMS/WMTS/XYZTile/etc.)
(Optional) Rename your Raster Attribute Column(s) with a prefix

  • Is there a process that will work for rasters from ArcGIS MapServer data sources? Mar 22 at 10:51

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.