Query regarding Heat map Generation

25 views
Skip to first unread message

Jagades Vignesvar

unread,
Dec 3, 2020, 3:02:42 PM12/3/20
to data...@googlegroups.com
Dear All,
I have a set of GPS Points (in both .gpx and .csv format), and the base road layers in .shp format. Can anybody help how to generate a Line Heat Map based on the available GPS points? (Like a larger number of GPS points on a particular route indicates its being used frequently)
Thanks in advance. 

Vignesvar J.
Civil Engineer |  Urban & Regional Planner

Ujaval Gandhi

unread,
Dec 4, 2020, 2:26:10 AM12/4/20
to data...@googlegroups.com
Hi Jagades,

There are many ways to do it. Here are some ways to achieve this in QGIS

Easiest would be to use the GPX tracks (lines). QGIS has a tool 'Line Density' in Processing Toolbox that will give you a heatmap based on overlapping line segments. If you just have points with timestamps and track id, use the 'Points to Path' tool to create tracks.

A more complex but accurate way would be to first snap your GPS points to the road segments. I outline the process here https://spatialthoughts.com/2020/02/22/snap-to-roads-qgis-and-osrm/ . If you don't care much about accuracy, you can use 'Snap Geometries to Layer' tool in QGIS and snap each GPS point to the nearest road segment. Then you can do a spatial join 'Join Attributes by Location (summary)' and count the number of points on each segment. Then you can use apply a symbology using the 'count' field for each line segment. 

I can think of 5 other ways, but instead of listing them here, I'll point you to this thread which has more ideas :) https://gis.stackexchange.com/questions/264710/doing-heatmap-from-line-data-in-qgis

Logo
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
LinkedIn icon  Twitter icon  



--
Datameet is a community of Data Science enthusiasts in India. Know more about us by visiting http://datameet.org
---
You received this message because you are subscribed to the Google Groups "datameet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datameet+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/datameet/CAA0P%2BhD%3DwgDEEZA%3DTOvXtn_xvcznm1fVJGybpUKAEJvFXXxXzw%40mail.gmail.com.

Jagades Vignesvar

unread,
Dec 4, 2020, 2:04:58 PM12/4/20
to data...@googlegroups.com
Thanks alot :) 

Vignesvar J

Reply all
Reply to author
Forward
0 new messages