#geodataframe

Jakob Mikschjakobmiksch
2025-11-13

while exploring @geopandas docs I learned it has a "explore()" function that creates an interactive map of the

geopandas.org/en/stable/docs/u

Alexandre B A Villares 🐍villares@ciberlandia.pt
2024-02-04

A geodataframe "hello world" ?

#osmnx #Python #geodataframe #OpenStreetMaps

# the code below and on the right a window
# showing a blue polygon with the city of São Paulo boundary

import osmnx as ox
import matplotlib.pyplot as plt

query = {'city': 'São Paulo'}
gdf = ox.geocode_to_gdf(query)  # a geopandas GeoDataFrame
gdf.plot() 
plt.show()
Alexandre B A Villaresvillares@pynews.com.br
2023-08-29
Map of São Paulo, with data from OpenStreetMaps, Copan building in red at the center, Paulista Avenue, patially visible in red diagonal bottom left.
Alexandre B A Villares 🐍villares@ciberlandia.pt
2023-08-27

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

Anita Graser 🇪🇺🇺🇦🇬🇪underdarkGIS@fosstodon.org
2023-01-13

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

#opensource #gischat #dataexploration #visualization

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst