home.social

#osmnx — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #osmnx, aggregated by home.social.

  1. I was once in a discussion with policy makers about giving better loan terms based on walkability. Good idea. But they were measuring it as a straight-line radius. Draw a circle, count what's inside.

    When I looked at the actual pedestrian network, the story is quite different! Not everything is accessible. Private roads, a highway with no crossing, cul-de-sacs forcing you around the block.

    I ran this analysis for four cities using #OSMnx + #OpenStreetMap = 💜

    What city would you want to see next?

    tynstudio.com/blog/15-minute-c

    #UrbanPlanning #15MinuteCity #GIS #Python

  2. @dequbed now and again I have tried playing with geotiff encoded elevation data (I want to add elevation to #OSMnx graphs...) but I have a hard time getting them then I usually fail making it all work :-S

    Can you point me to where I can get some of the images you are using?

  3. @pyohio I'm going strong on my daily creative coding sketches, I usually do them with Python and the #py5 library, and this year it has been all smooth sailing: abav.lugaralgum.com/sketch-a-d

    Also some #geopandas, #OSMnx and #Folium fun at our local hackerspace here in São Paulo #GaroaHackerClube. I've heard that PyOhio is one of the most welcoming US regional conferences, maybe one day I get the chance to join you :)

  4. «Welcome to the #AutomatingGIS processes course! Through interactive lessons and hands-on exercises, this course introduces you to #GeographicDataAnalysis using the #Python programming language. If you are new to Python, we recommend you first start with the Geo-Python course (geo-python.readthedocs.io) before diving into using it for GIS analyses in this course.

    Geo-Python and Automating GIS Processes (‘#AutoGIS’) have been developed by the Department of Geosciences and Geography at the University of Helsinki, Finland. The course has been planned and organized by the #DigitalGeographyLab. The teaching materials are openly accessible for anyone interested in learning.»

    autogis-site.readthedocs.io/en

    (via Paul Walter no linkedin)

    #GIS #geoPython #geopandas #shapely #osmnx #networkx

  5. It looks like loading all the road and paths in Great Britain from into as single dataframe wasn't the smartest idea I had this weekend.

    Although kudos to for allowing me to even be able to get anywhere near doing something so daft.

  6. 1/ I've posted this kind of thing before: a flight of steps that is not tagged as steps in OSM.

    But this time is different. This time, I didn't find the steps by randomly walking around Malaga. This time, I had A System.

    With the help of the OSMnx package and IGN elevation data, I was able to estimate gradients of street segments in OSM data. The example shows one barrio (Maqueda) that has a flat eastern part, and a western part built on both sides of a ridge.

    #OpenStreetMap #osmnx #malaga

  7. 6/ If anyone is interested in the technicalities, I got these results using the OSMnx Python package.

    The tricky part was working out exactly which digital terrain model files I needed to download from the IGN website. I actually did this for an unrelated reason and nerd-sniped myself into this side quest.

    The code is a straightforward adaptation of the very good OSMnx examples (especially example 12). But it's here if anyone wants to try something similar:
    codeberg.org/linesinalandscape

    #osmnx

  8. «The official OSMnx reference paper has just been published open-access by Geographical Analysis: [link below] Years in the making, this article describes what OSMnx does and why it does it that way. But wait, there's more! I also discuss many lessons learned over the past decade in geospatial software development [...]» — @gboeing

    Modeling and Analyzing Urban Networks and Amenities With OSMnx

    onlinelibrary.wiley.com/doi/10

    #Python #OSMnx #geoviz #geopandas #FLOSS #geospatial #OpenAccess

  9. It is super cool to be listed as a "contributor" for having chimed in (constructively) on a project's issue :D

    github.com/nathanrooy/taxicab/

    #taxicab is a library that improves on #OSMnx route-finding function, giving more useful results, specially on short routes.

    #geopython #python

  10. Calculating different #centrality measures for a street #network takes longer than expected.

    #DegreeCentrality is calculated in a few milliseconds. But oh boy. #ClosenessCentrality and #BetweennessCentrality are proper whoppers. For a network of 65 000 nodes, we're talking about 2+ hour calculation times for the closeness centrality, not to mention the betweenness.

    Apparently switching to #igraph would provide a speed boost over #networkx but the convenience of #osmnx has won me over.

  11. I know #matplotlib can do cartography (maps), and #osmnx uses it to plot stuff, but I can't find documentation or a decent tutorial to plot a base map and a list of latlong places as different sized circles. I'm struggling with #cartopy, in theory a wrapper to make mapping easier :((
    Is it that hard or I'm just too dumb and/or I'm making everything wrong? #Python

  12. I know #matplotlib can do cartography (maps), and #osmnx uses it to plot stuff, but I can't find documentation or a decent tutorial to plot a base map and a list of latlong places as different sized circles. I'm struggling with #cartopy, in theory a wrapper to make mapping easier :((
    Is it that hard or I'm just too dumb and/or I'm making everything wrong? #Python

  13. I know #matplotlib can do cartography (maps), and #osmnx uses it to plot stuff, but I can't find documentation or a decent tutorial to plot a base map and a list of latlong places as different sized circles. I'm struggling with #cartopy, in theory a wrapper to make mapping easier :((
    Is it that hard or I'm just too dumb and/or I'm making everything wrong? #Python

  14. I know #matplotlib can do cartography (maps), and #osmnx uses it to plot stuff, but I can't find documentation or a decent tutorial to plot a base map and a list of latlong places as different sized circles. I'm struggling with #cartopy, in theory a wrapper to make mapping easier :((
    Is it that hard or I'm just too dumb and/or I'm making everything wrong? #Python

  15. I know #matplotlib can do cartography (maps), and #osmnx uses it to plot stuff, but I can't find documentation or a decent tutorial to plot a base map and a list of latlong places as different sized circles. I'm struggling with #cartopy, in theory a wrapper to make mapping easier :((
    Is it that hard or I'm just too dumb and/or I'm making everything wrong? #Python

  16. @natera cheers Luis...

    I've learned to get things just inside a bounding box...github.com/villares/sketch-a-d but I'm struggling with the documentation :(
    I don't have a very definite goal but I'm exploring some ideas. I'd like to highlight a a chosen street and calculate it's length in meters.

    I can convert a #osmnx graph to a #GeoDataFrame, just edges, and select named edges. But then I can't convert them back to a network (because I don't have nodes? Because I'm using the wrong methods?)
    Can I plot the gdf together with the graph? Maybe I should learn to extract the nodes?

    I can see some shapely geometry inside the dataframes, I wish I could convert/project it's coordinates to meters and then to some "screen coordinates" so I can draw them myself with #py5 instead of matplotlib (I never use matplotlib so I'm perpetually confused by it).

    And don't worry if you can't help me much with this...

    Update: I learned how to get the gdf (edged, nodes) tuple and I can highlight the selected street :)