[openstreetmap/openstreetmap-website] osmnx.graph_from_place InvalidChunkLength (Issue #4096)
AlexWangVT
notifications at github.com
Sat Jul 15 01:11:28 UTC 2023
### URL
_No response_
### How to reproduce the issue?
I use osmnx.graph_from_place to load graph from .osm.pbf file. The code works for most U.S. states but Texas. When I tried to process Texas data with graph_from_place function, it always gives the error: InvalidChunkLength: InvalidChunkLength(got length b’‘, 0 bytes read); ChunkedEncodingError: ("Connection broken: InvalidChunkLength(got length b’‘, 0 bytes read)", InvalidChunkLength(got length b’', 0 bytes read)). Fortunately, I had one successful run and got the data that I needed, which yet took 2 hours to run. Don’t know why it works this time and takes extreme longer than other states even though the data size is not significantly bigger. I think there must be something wrong in the server.
I also tried to use pyrosm.get_network function to retrieve the .osm.pbf file for Texas in order to concert it to geodataframe, but ran out of memory. Highly suggest adding some arguments that could be used to filter columns as needed.
Another way I’ve tried is using osm2pgsql to load .osm.pbf file directly to postgresql but the data format is different from what I could get using get_network or graph_from_place function. Suggest creating style files that is used to extract the exactly same data format as get_network.
### Screenshot(s) or anything else?
_No response_
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4096
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/4096 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230714/4004be7a/attachment.htm>
More information about the rails-dev
mailing list