-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- the network is huge so try to optimize memory usage - rename output directory to be more consistent with step1 - output geopackage so for easy GIS viewing - output geojson directly from geodataframe to explore the difference between this version and what was output before
- Loading branch information
Showing
2 changed files
with
55 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4a89ae8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lmz : regarding "geopandas.to_file()" versus "link_df_to_geojson", my understanding is that there are fields with mixed data type - string and list, then using gpd.to_file() would throw an error, both for geojson and geopackage. The method "link_df_to_geojson" bypasses the problem. It it based on this: https://geoffboeing.com/2015/10/exporting-python-data-geojson/.
4a89ae8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My runs of
geopackage.to_file()
in this script has thus far been successful. Have you had problems with this call?4a89ae8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error happens starting from step3 when OSM data is conflated with SharedStreets data.
Also, the file generated from "link_df_to_geojson" is smaller than from "gpd.to_file()" - but I guess this is less important if we don't want to use geojson.