Questions tagged [osmnx]
a Python package that lets you download geospatial data from OpenStreetMap.
47
questions
0
votes
0
answers
17
views
No border connections in OSM data
I used OSMNX to download States in Germany as well as surrounding States from other countries to do mobility-analyses. These States get merged back together in my GDB. However at borders (no matter if ...
0
votes
1
answer
56
views
Timeout error when using features_from_place
I'm trying to execute the following to get all buildings within Manhattan in Python on Google Colab
tags = {
'building': True
}
# Geocode the location to get its geometries
ft = ox.geocode_to_gdf(...
1
vote
1
answer
168
views
Bus lines/routes from OpenStreetMap using OSMnx
I am trying to obtain bus lines/routes from OpenStreetMap using OSMnx. For example busline 284 in Nootdorp, Netherlands: https://www.openstreetmap.org/relation/2024408#map=15/52.0463/4.3967&layers=...
0
votes
0
answers
33
views
Streets/roads without any walk-related tags in OSMnx walk network
I downloaded an OSM walk network model from OSMnx:
Walk= ox.graph_from_place('Levanger, Norway', network_type='walk')
There are several instance where streets have no walk-related tag. See screenshot ...
0
votes
0
answers
72
views
OSMnx custom filtering
I'm trying to filter an OSMnx query with a custom filter which excludes all highway=service except segments where service=bus.
I copied the network type 'walk' from the overpass and tried to implement ...
0
votes
0
answers
92
views
QGIS Plugin - How to import external libraries
I'm developing a plugin for QGIS that uses external libraries such as OSMnx, Shapely, and Scikit-learn. In particular, the last one is an optional dependency of OSMnx.
At first I created a lib folder ...
1
vote
1
answer
166
views
City Suburbs Polygon using OSMNX
I am trying to do something similar to the question OSMNX - City Suburbs Polygons. The city of Panama, in the Republic of Panama, is composed of corregimientos (like a borough). I am trying to get the ...
0
votes
0
answers
335
views
Configure OSM Data for ArcGIS Pro Network Analysis
I want to create a Network Dataset in ArcGIS Pro using OSM data downloaded and prepared using osmnx and python. My code is quite crude, but works so far. However, I am now transitioning to using it ...
0
votes
1
answer
455
views
OSMnx custom_filter - get all types of roads
I need to get all existing OSM types of roads from the area, and I'm searching for a simple way of doing this rather than specifying each type with "|"
I've tried to write something like ...
0
votes
1
answer
456
views
TypeError("Must pass list-like as `names`."), Network generated via osm, geopandas, momepy. Objective: Run short path analysis via osmnx
I am trying to solve short path analysis via osmnx.distance.k_shortest_paths(G, orig, dest, k, weight='length')
I have used this approach as I am limited in the SSL/memory, that is why I am not using ...
1
vote
1
answer
492
views
Osmnx.plot_graph_folium() not working; folium is not recognized
I'm trying to display a osmnx map like:
graph_map = ox.plot_graph_folium(coordinates, popup_attribute ="name", edge_width=2)
but I get an error:
Cell In[40], line 1
----> 1 graph_map = ...
2
votes
1
answer
437
views
Extracting relations with osmnx?
I am using osmnx package https://osmnx.readthedocs.io/en/stable/osmnx.html
to extract data from OSM. I aim to obtain relations from the cyclist node network in Flanders. After some info about tagging, ...
1
vote
1
answer
269
views
Issues with graph generated by momepy from GeoPandas Data Frame
I'm trying to create a graph from a GeoPandas Data Frame, but am having an issue where some roads are being excluded, and others are not joined up correctly. As well as that, I'm getting these large ...
0
votes
2
answers
2k
views
How to calculate the length and duration of trip for a GeoDataFrame of points on OpenStreetMap using OSMnX package?
I have a GeoDataFrame of GPS points and I want to calculate the length and duration of trip from each point to all other points.
My input GeoDataFrame looks like this:
id Longitude Latitude ...
0
votes
1
answer
2k
views
Create a GeoDataFrame with all the countries in the world with osmnx, efficiently
I'm trying to create a GeoDataFrame with the names and geometries of all 195 countries in the world.
My attempt was to create a rectangle covering the entire world, and then query it with osmnx.
...