
Chris Parmer
November 14, 2026
geopandas demo
Spatial data analysis in Python, with Dash and Plotly
TL;DR
- geopandas adds geometry and a coordinate reference system (CRS) to pandas, so spatial joins, buffers, overlays and reprojection work like dataframe operations. Kelsey Jordahl started it in 2013, and a community of maintainers develops it today.
- This demo runs five analyses on public U.S. data, each with a different geopandas operation: wind farm footprints with dissolve, clinical trial sites per state with sjoin, storm wind swaths with buffers and overlay, burned area by county, and earthquake counts on a hexagon grid.
- Version 1.2 (September 28, 2026) adds make_grid for square and hexagon grids, GeoParquet 2.0, GeoParquet reads from https:// URLs, grid_size for set operations and rebuilt static plotting.
- All five layers come together in Site Screener, a Dash app that screens any spot in the lower 48 states in under half a second, with the prompts to build it at the end.

What is geopandas?
Most business data has a place attached. A wind developer asks what sits near a parcel, an insurer which insured properties sit inside a storm's footprint, a utility which counties its lines cross, and a clinical operations team where trial sites are compared with patients. The shapes differ (points, lines and polygons), and so do the coordinate systems, but the question is always what is near, inside or overlapping what.
geopandas answers it in pandas. It hands geometry to shapely, projections to pyproj and file reading to pyogrio, so read_file, sjoin, overlay, dissolve and to_crs are each one line on a GeoDataFrame. It's the vector side of our guide to Python packages for data; for gridded weather and satellite data, see the xarray demo. Below are five things you'd do with geopandas, each on a public dataset from a different field.
The data: six public U.S. datasets, from 353 polygons to 89,691 points
Layer
Field
Source
Geometry
Rows
Wind turbines
Energy
Points (NAD83)
77,839
Cancer trial sites
Pharma
ClinicalTrials.gov API, recruiting studies, November 14, 2026
Points (WGS84)
89,691
Hurricane tracks
Insurance
NOAA IBTrACS, 2024 U.S. landfalls
Points along tracks
5 storms
Wildfire perimeters
Utilities
NIFC WFIGS, 2025 fires of 1,000 acres or more
Polygons
353
Earthquakes
Geoscience
USGS ComCat, 2025, magnitude 1.5 and up
Points
19,033
Counties and population
All
U.S. Census Bureau, 2024
Polygons (NAD83)
3,235
The layers arrive as zipped shapefiles, GeoJSON, CSV with longitude and latitude columns and JSON from an API. gpd.read_file opens anything GDAL can read, and gpd.points_from_xy turns coordinate columns into geometry:
turbines = gpd.GeoDataFrame(t, geometry=gpd.points_from_xy(t.xlong, t.ylat), crs="EPSG:4269")
Degrees are fine for drawing but not for measuring, so every area and distance below is measured after projecting to EPSG:5070 (Conus Albers), an equal-area projection in meters.

Five geopandas examples
1. Energy: turn turbines into wind farm footprints with dissolve
dissolve is a group-by for geometry. It merges each project's turbines into one shape and sums their capacity, and convex_hull draws the footprint around them.

farms = turbines.to_crs(5070).dissolve(by=["p_name", "t_state"], aggfunc={"t_cap": "sum", "case_id": "count"})farms["geometry"] = farms.convex_hull
- The 77,839 turbines group into 1,818 farms, and the largest by capacity, Western Spirit in New Mexico, spreads 377 turbines over its footprint.
2. Pharma: count clinical trial sites per state with a spatial join
sjoin gives each point the attributes of the polygon it falls in, which turns site coordinates into trials per state, county or sales territory.

joined = gpd.sjoin(sites.to_crs(states.crs), states[["STUSPS", "geometry"]], predicate="within")
- By raw count, Texas and California lead, but per resident the Dakotas, Nebraska and Rhode Island stand out, which is the view a feasibility team wants when it looks for under-served regions.
3. Insurance: estimate exposure inside a storm's wind field
Buffers turn a storm track into an area, and overlay cuts counties by that area. Together they're the core of a catastrophe exposure estimate, which insurers and utilities run on their own assets.

circles = pts.geometry.buffer(pts.r64_m, quad_segs=16) # widest 64-knot wind radiushit = gpd.overlay(counties, gpd.GeoDataFrame(geometry=[swath], crs=5070), how="intersection")hit["people"] = hit.POPESTIMATE2024 * hit.area / hit.county_area
- Each county is shaded by its population times the share of its area inside the swath, a quick screening estimate that the same code would run on a portfolio of insured sites.
4. Utilities: split burned area by county with an overlay
Fire perimeters overlap and cross county lines. union_all merges them so no acre counts twice, and overlay splits the result by county.

fires["geometry"] = fires.make_valid(method="structure") # hand-drawn perimeters often cross themselvesburned = gpd.GeoDataFrame(geometry=[fires.union_all()], crs=5070).explode(index_parts=False)by_county = gpd.overlay(counties.to_crs(5070), burned, how="intersection")
- Merging overlaps and measuring in an equal-area projection brings the reported total of 4.00 million acres down to 3.92 million.
5. Geoscience: count earthquakes on a hexagon grid with make_grid
Counties and states mix huge and tiny areas, which distorts any map of counts. Equal-size hexagons don't, and geopandas 1.2 builds them in one call.

hexes = gpd.make_grid(lower48, 50_000, grid_type="hexagon") # new in geopandas 1.2hexes = gpd.GeoDataFrame(geometry=hexes.values, crs=5070).reset_index(names="hex")counts = gpd.sjoin(quakes.to_crs(5070), hexes, predicate="within").groupby("hex").size()
- The busiest hexagon is in the Permian's Delaware Basin, an oil and gas region on the New Mexico and Texas border, and the next two are at The Geysers geothermal field in California.
geopandas also reads and writes GeoParquet, PostGIS, GeoPackage and every GDAL format, makes interactive maps with explore(), and sits at the center of Python's geospatial ecosystem with shapely, pyproj, pyogrio and rasterio.
What's new in geopandas 1.2
Version 1.2 came out on September 28, 2026, 16 months after 1.1.0, with 161 commits from 41 contributors, as listed in the changelog:
- make_grid builds square or hexagon grids over any area, as polygons, centers or corners.
- read_parquet from https:// URLs.
- GeoParquet 2.0 and attrs: to_parquet(schema_version="2.0.0") writes the new spec, and attrs such as a source note are saved and read back.
- grid_size for union, difference, symmetric_difference and intersection, which snaps results to a precision grid to avoid slivers.
- Rebuilt static plotting with dict-based category styles, better legends, CRS axis labels and basemaps with tiles=.
- read_file_info lists a file's layers, fields and CRS without reading it.
Before you upgrade, note that 1.2 needs Python 3.11, pandas 2.2, NumPy 2.0, pyproj 3.7 and shapely 2.1, that buffer(resolution=...) is deprecated in favor of quad_segs=, and that code that reached into plot()'s matplotlib internals may need changes.
pip install -U geopandas
Testing 1.2 against 1.1
We ran the five analyses on geopandas 1.1.4 and 1.2.0 in environments that differed only in geopandas:
- Same answers, same speed. The four analyses that run on both gave identical results, geometry included, in about the same time.
- make_grid replaces a loop you'd otherwise write. Our own 15-line hexagon grid on 1.1.4 took 1.14 s; make_grid took 0.02 s. The grids start at different corners, so counts per cell differ between them, as they do on any two grids.
- GeoParquet. On 1.2.0, read_parquet read a file straight from GitHub, attrs survived a round trip and version 2.0.0 files were written. 1.1.4 can't do the first three, but it reads 1.2.0's 2.0.0 files.
Demo App: Site Screener
We built a Dash app called Site Screener that puts all five datasets on one 50 km hexagon grid and screens any spot in the lower 48, and deployed it privately to Plotly Cloud.

The Atlas tab colors the make_grid hexagons by one layer at a time and lists the top 10 with every layer side by side.

Switching the layer redraws the map in place, and clicking a hexagon opens it in the Screener tab.

The Screener buffers a point and runs sjoin, overlay and sjoin_nearest against every layer in the callback, so a siting or feasibility question gets an answer for any radius you choose.

Around Pecos, Texas, the same screen shows a very different site, with little population and many small earthquakes.

Around Sioux Falls, it lists the largest wind farms and the trial sites with the most studies.

The Versions tab has the 1.1 and 1.2 test results from the section above.
Running geopandas on Plotly Cloud and Dash Enterprise
What we learned deploying Site Screener applies the same way on Dash Enterprise:
- Ship GeoParquet, already projected to the CRS you measure in. Every layer for the whole app comes to 7.5 MB and loads in a fraction of a second.
- Precompute heavy overlays. The per-hexagon numbers take seconds, so we computed them once, and the live screen takes under 400 ms.
- Explode before overlaying. Counties against the merged burned area as one multipolygon took 108 s, and after explode() it took 7 s with the same acres.
- Simplify what you only draw. simplify(30) cut the burned area from 21.8 MB to 1.9 MB with almost no change in acres.
Prompts to build it yourself
The five charts:
Prompt: With geopandas 1.2 and Plotly, using public U.S. data: (1) USGS wind turbines with points_from_xy (EPSG:4269), dissolve by project and state, convex_hull footprints; (2) ClinicalTrials.gov recruiting cancer sites, sjoin with Census states, trials per million; (3) NOAA IBTrACS 2024 hurricanes buffered by the widest 64-kt radius, joined into swaths, overlay with counties for area-weighted population; (4) NIFC 2025 wildfires, make_valid, union_all, explode, overlay with counties for acres; (5) USGS 2025 earthquakes counted on make_grid 50 km hexagons. Measure everything in EPSG:5070.
The Site Screener app:
Prompt: Build a Dash app called Site Screener on the same data. Offline: a make_grid 50 km hexagon grid with wind MW, trial sites, quakes, acres burned, hurricane share and population per hexagon, all saved as GeoParquet. Tabs: Atlas (Choroplethmap by chosen layer plus a top-10 table; click to screen), Screener (lat, lon and radius; buffer and run sjoin, overlay and sjoin_nearest live; cards, a map and lists), Versions (a 1.1.4 vs 1.2.0 benchmark). Inter, light theme, Plotly purple.