Skip to content

Instantly share code, notes, and snippets.

@ustroetz
Last active May 5, 2018 12:52
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/def063b6b81362370cf854bc083f19ef to your computer and use it in GitHub Desktop.
Save ustroetz/def063b6b81362370cf854bc083f19ef to your computer and use it in GitHub Desktop.
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