fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

Anita Graser 🇪🇺🇺🇦🇬🇪

Getting ready for the next release 0.17 with more trajectory cleaning features than ever before 😉

@underdarkGIS the graph looks cool. Is it about navigation or something?

@underdarkGIS do you know of a method in to color a line gradient based on point data?

@andrewfrench I'm not sure I understand exactly what you are looking for. Could you provide an example?

@underdarkGIS I see in you have a line gradient based on trajectory, let's say I would like to do something similar, only using proximity to a point layer. That's is, changing the line gradient based on proximity to a feature. Tbh I thought this would be easy in but didn't find any obvious solution.

@andrewfrench yeah, I don't think there is any such thing out of the box, but geometry generators could probably do the trick

@andrewfrench in , you probably need to split the line into short segments, calculate the distances between segments and points, and then plot the segments with color defined by the computed distances ... it's similar to what does to visualize speed

@underdarkGIS @andrewfrench I'd go with some custom pyqgis code to set m values on the lines with the point distances. Then you could style by m (there's a lot of examples of that around)

@nyalld it does seem that what I am talking about is linear referencing and m values - haven't found any very good references yet for pyqgis implementation, if you could point me in the right direction I would be grateful

@andrewfrench @underdarkGIS that is currently not possible with geopandas. You would need to explode LineStrings to segments, assign a color to each segment and plot that. But it might be worth opening a feature request to keep track of the idea.