Het is fijn (belangrijk zelfs) als je aangeeft hoe je tot de oplossing bent gekomen. Een ander met hetzelfde probleem heeft er dan ook wat aan.
Verder is het beter om voor een nieuwe vraag een nieuw topic te starten, zodat andere mensen die eenzelfde vraag hebben dit ook kunnen vinden. De kans op een goed antwoord is ook groter.
De QGIS processing toolboox heeft de tool “Sample Raster Values”. Uit de help:
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.