Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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