python - Osmnx 将大图保存为 graphml
问题描述
我正在下载一个大型街道网络(柏林)。当我尝试将其保存到光盘时,我的笔记本电脑几个小时内什么也没做。
这正常吗?
我的代码:
ox.save_graphml(G,“some_place.graphml“)
解决方案
I would guess that can be normal. Is your CPU load indicator of your system showing that something is happening?
You have the following options:
- try a smaller street network and see if it finishes faster - to check if it works basically
- if you are on Linux you could execute your script with
strace python myscript.py
- you would see the low level system calls and notice if something is happening :-) - Or try a python debugger and debug into the function
推荐阅读
- node.js - 使用 Google Drive REST API 进行可恢复上传时设置文件名的问题
- python - 通过 ENTRYPOINT 在 Docker 中采购 .bashrc
- docker - Visual Studio 2019 调试选项 IISExpress 已从下拉列表中消失
- snowflake-cloud-data-platform - 雪花条件代码:添加新列(幂等脚本)
- r - 根据日期顺序为组创建剧集
- r - 翻转 geom_bar 的 X & Y 坐标
- mongodb - 将 TSL 添加到 Mongo 会导致它崩溃
- php - 带有过滤器的 Laravel 搜索表单
- javascript - 控制台错误:[function] 未定义,虽然它是
- bash - 包含通过函数初始化传递的变量插入到 perl 字符串中的 bash 变量的函数