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)). I think there must be something wrong in the server. Does anybody have the solution?
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.
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. Anyone knows which style file I should use to extract the exactly same data format as I get from get_network or graph_from_place.
3 posts - 2 participants
Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/osmnx-graph-from-place-invalidchunklength/101204