Closed kolumdium closed 4 years ago
Your desired graph does not appear to be fully connected, because those infrastructure types do not form a fully connected graph within your query area. Did you try using the retain_all
argument? See the docs. Otherwise you're retaining only the largest weakly connected component by default.
Yeah that works.
My bad. Did not read that carefully enough.
Thank you for your time.
Issue: The custom_filter results do not match the actual osm data. More details below.
Environment (
conda list
):Details about
conda
and system (conda info
):Problem description
I was using the custom_filter option of the graph_from_place function when I noticed the retrieved data does not match the actual tags in osm. I used an area where I knew all tags had been set to either "residential" or "living_street". Here is how the overpass query should look like:
However here is what happens, If you query either tag individual you get a response. This response is already wrong though. Residential:
living_street:
If you use both with "|" you do not get streets with both tags:
You could use composed with networkx:
I am lost on why this is happening. I tracked down the query String and when you paste the result into Overpass you get the proper result So the query string seems fine:
query_str = f"{overpass_settings};(way{osm_filter}(poly:'{polygon_coord_str}');>;);out;"
I tried to look where the error is comming from but I can not find it.
I would appriciate feedback. Am I just using it wrong or is this actually an issue? Also building on this are you sure your osm_filters from "_get_osm_filter" work correctly?
Thank you for your time. -Kolumdium