Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
routes_segments = routes_gdf.unary_union
routes_segments_gdf = gpd.GeoDataFrame.from_features([{
"type": "Feature",
"properties": {"id": count},
"geometry": mapping(geometry)
} for id, geometry in enumerate(routes_segments)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment