I am quite new to GIS, and was wondering if you might be able to help me out?

I have a raster layer for gradient as well as a line created from GPS tracking points(using the point connector tool). Is there a way to sample the raster layer according to the distance covered along each raster value by the line?

  • 1
    Hi Rob, welcome to the site/GIS. Can you state what software you want/need to use for this? Can you also clarify: do you want the raster sampled at each GPS point or do you want the raster sampled at a regular interval along your line? Commented Jul 27, 2015 at 11:54

1 Answer 1


MikeRSpencer's comment is the key to choose the best method among possible options QGIS can offer.

  1. Sample at each GPS point
  2. Sample at a regular interval along the line

Without additional information from OP (well...not yet), remaining option would be:

  1. Sample all the cells along the line

In QGIS Processing Toolbox, there is a SAGA Tool Profiles from lines (in SAGA | Terrain Analysis - Profiles).

enter image description here

The output table shows 1 record (row) per each cell on which the line overlays. Depend on how we want to sample out from this table, we can use DIST (distance from the start point) or X,Y coordinates to refer the location.

Positive point is that we can choose sampling method afterwords. Negative point is the data size, unnecessarily large, if we have already decided how we want to measure the profile.

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.