I'm trying to extract raster values along multiple shapefiles in QGIS for further analysis. I've successfully extracted values for points, so I either need to convert my vector shapefile to points (with the same spacing as my raster pixel resolution), or I need a tool to extract values along the vector line. I've tried Zonal Statistics, but I need to extract each pixel value, not the sum/count/mean etc.
SAGA Tool Profiles from lines (in
QGIS Processng Toolbox | SAGA | Terrain Analysis - Profiles), which extracts all cell values underlie the line you have given.
Activate the tool, then:
DEM: Select your raster as input.
Line: Select your line layer.
Name: If you have multiple lines, then specify an (unique) ID field. It will help you to identify which line (aka "profile") the data belongs to.
Each line as new profile: You can leave it on.
I think you would need
Nearest neighbouras resampling method, to extract the cell values without any modification.