Skip to main content
3 votes
Accepted

Projects points to lines inside a polygon

Your line layer has a different CRS to your point layer, which is likely the reason the shortest_line function is not working. You can collect together your line segments and perform a transformation ...
Matt's user avatar
  • 17.4k
1 vote
Accepted

Including length when making a networkx network from a geodataframe

The geometry and the properties of the GeoDataFrame are still present in the graph, you can see them in using data=True (and the length is 'mm_len') (see How to calculate edge length in Networkx) With ...
gene's user avatar
  • 55.1k

Only top scored, non community-wiki answers of a minimum length are eligible