Skip to content

Instantly share code, notes, and snippets.

@ustroetz
Last active May 5, 2018 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ustroetz/a1644e3879e2d3ba169188c080099b15 to your computer and use it in GitHub Desktop.
Save ustroetz/a1644e3879e2d3ba169188c080099b15 to your computer and use it in GitHub Desktop.
connection_routes_gdf = gpd.sjoin(
routes_segments_gdf, routes_gdf, how='left', op='within').dissolve(by='id', aggfunc='sum')
connection_routes_gdf.to_file(
'connection_routes.geojson', driver='GeoJSON')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment