home.social

#geodataframe — Public Fediverse posts

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

  1. @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 :)

  2. I ran into issues with @geopandas explore today when the included datetime columns. Still have to check if this is a known issue and then create a reproducible example