I have collected some temperature data from a Google Car dataset with each data having Lat/Lon and temperature values. The data is stored in CSV file. I already fixed the GPS lat/lon by using "project" and "interpolate" using this shapely Snap points. Snapped points

I also have a shapefile of the road the car took divided into 30 m segments.30 m segment of road

What I want to know, how can I snap/group GPS data to these 30 m segments in QGIS?

I am using QGIS 3.16 and all data is projected in ESPG 4326.

  • 1
    Please don't post two questions at once. Also, I am under the impression, that both issues have been dealt with on GIS.SE already.
    – Erik
    Feb 3, 2021 at 10:21
  • Hey sorry, I am not aware on what exactly to find. I am really new to GIS domain and also using QGIS. You have any reference/link that will be helpful? Feb 3, 2021 at 10:25

1 Answer 1


After some searching, I realized that I can use "Join Attributes by Location (summary)" to calculate the some statistics for all the points lying on each 30 m line segment.

This answers my question.

But I have issue that I am not able to get values for all the line segments. The join only gives me statistics for few line segments.

  • You should not ask a question in an answer - it will go unnoticed. Rather ask a new question
    – Babel
    Mar 15, 2021 at 10:22

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.