Stage 01 · Write · Researched comparison
Best Python Geospatial Libraries in 2026
GeoPandas is the first pick for most developers working with vector data such as shapefiles and GeoJSON, because it adds geometry operations to pandas DataFrames. Shapely is the better choice when you only need geometry math on single shapes. Rasterio fits raster work like GeoTIFF processing, and pyproj handles coordinate reference system transforms. All three are free and open source.
By Shihab Mia
Published 27 Nov 2026 · 10 tools compared
We run no ads and no affiliate links at launch. The order of a list follows our published method. See how we score.
Prices are the starting prices vendors list publicly. Plans change, so confirm the current price on the vendor page before you buy.
Key takeaways
- GeoPandas, Shapely, pyogrio, Rasterio, pyproj, GDAL bindings, Folium, H3-py and OSMnx are all free and open source.
- GeoPandas now reads and writes files through pyogrio, which replaces Fiona for most IO work.
- Rasterio and GDAL bindings need the GDAL native library installed, which is the main setup hurdle.
- Folium output is HTML you can open offline, but map tiles still load from a remote tile server.
Who each pick is for
- Vector data analysis in pandas DataFramesGeoPandas
- Geometry creation and spatial predicates on single shapesShapely
- Reading and writing vector files record by recordFiona
- Fast bulk vector IO inside GeoPandaspyogrio
- Reading and writing raster data such as GeoTIFFRasterio
- Coordinate reference system transforms and geodesic calculationspyproj
- Low-level access to every GDAL format and driverGDAL Python bindings
- Interactive Leaflet maps from Python dataFolium
- Hexagonal grid indexing of geographic pointsH3-py
- Downloading and analyzing OpenStreetMap street networksOSMnx
Comparison
| Tool | Best for | Standout feature | Listed starting price | Free plan or trial |
|---|---|---|---|---|
| 1GeoPandas | Vector data analysis in pandas DataFrames | Geometry columns work with pandas operations | Free (open source) | Free plan |
| 2Shapely | Geometry creation and spatial predicates on single shapes | Clean API for points, lines and polygons | Free (open source) | Free plan |
| 3Fiona | Reading and writing vector files record by record | Simple API over OGR formats | Free (open source) | Free plan |
| 4pyogrio | Fast bulk vector IO inside GeoPandas | Vectorized reads and writes through GDAL | Free (open source) | Free plan |
| 5Rasterio | Reading and writing raster data such as GeoTIFF | NumPy arrays with georeferencing metadata | Free (open source) | Free plan |
| 6pyproj | Coordinate reference system transforms and geodesic calculations | Full PROJ transformer API | Free (open source) | Free plan |
| 7GDAL Python bindings | Low-level access to every GDAL format and driver | Covers formats and options the wrappers omit | Free (open source) | Free plan |
| 8Folium | Interactive Leaflet maps from Python data | Builds Leaflet maps with markers, choropleths and layers | Free (open source) | Free plan |
| 9H3-py | Hexagonal grid indexing of geographic points | Fast point-to-cell and cell-to-boundary functions | Free (open source) | Free plan |
| 10OSMnx | Downloading and analyzing OpenStreetMap street networks | Builds NetworkX graphs from OSM data | Free (open source) | Free plan |
How we picked
We picked libraries that do the job named in the slug and are actively maintained, with a public repository and documentation. Criteria were fit for common tasks (vector IO, geometry math, rasters, projections, maps, indexing, street networks), platform support, licence, dependency weight and known limits. Sources are vendor documentation, project repositories and public licence pages. Prices and free-plan terms can change, so confirm details on the project site before you commit.
The tools, one by one
GeoPandas
Best for vector data analysis in pandas DataFrames

What it is and where it fits
GeoPandas extends pandas with a GeoDataFrame type and a GeoSeries of geometries. You can filter, join, group and plot spatial data with the same patterns you use for tabular data. It covers spatial joins, overlays, clipping and reprojection. File IO runs through pyogrio by default in recent versions, with Fiona still available as an engine.
It runs anywhere Python runs, including Windows, macOS and Linux, and installs through conda-forge or pip. The licence is BSD-3-Clause. The main limit is the native dependency stack: GEOS, GDAL and PROJ must be present, and version mismatches cause most install failures. Skip it if you only need to compute the area of one polygon; Shapely is lighter for that.
Standout: Geometry columns work with pandas operations
Free (open source), as listed by the vendor (GeoPandas website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Geometry columns work with pandas operations
- reads and writes many vector formats
Drawbacks
- Requires the GEOS, GDAL and PROJ native libraries
- heavy for single-shape math
Skip it if this limit matters to you: requires the GEOS, GDAL and PROJ native libraries.
Verdict. A sensible pick for vector data analysis in pandas DataFrames.
Shapely
Best for geometry creation and spatial predicates on single shapes

What it is and where it fits
Shapely provides geometry objects and operations: buffers, intersections, unions, distance and predicates such as contains and intersects. It is the geometry engine under GeoPandas, so the two share behavior. Version 2.x uses GEOS through a C extension and supports vectorized operations on arrays of geometries through Shapely 2 functions.
It runs on Windows, macOS and Linux and installs with pip or conda. The licence is BSD-3-Clause. Shapely does not read files, hold attributes or draw maps; pair it with GeoPandas or Fiona-style IO when you need those. Skip it if your task is reading a shapefile and joining attributes, which is GeoPandas work.
Standout: Clean API for points, lines and polygons
Free (open source), as listed by the vendor (Shapely website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Clean API for points, lines and polygons
- backed by the GEOS library
Drawbacks
- No file IO or tabular data handling
- no built-in plotting
Skip it if this limit matters to you: no file IO or tabular data handling.
Verdict. A sensible pick for geometry creation and spatial predicates on single shapes.
Fiona
Best for reading and writing vector files record by record

What it is and where it fits
Fiona wraps GDAL's OGR layer to read and write vector formats such as shapefiles, GeoJSON, GPKG and FlatGeobuf. It exposes features as Python dictionaries with geometry and properties, which suits streaming and record-by-record processing. It also reports schema and CRS metadata for each layer.
It runs on Windows, macOS and Linux and depends on the GDAL native library. The licence is BSD-3-Clause. Fiona is still maintained, but the GeoPandas project now defaults to pyogrio for IO and describes Fiona as the older engine. New projects that only need bulk reads through GeoPandas should start with pyogrio. Keep Fiona if you rely on its feature-level iteration or its CLI.
Standout: Simple API over OGR formats
Free (open source), as listed by the vendor (Fiona website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Simple API over OGR formats
- handles many drivers and coordinate systems
Drawbacks
- Being superseded by pyogrio inside GeoPandas
- slower for large bulk reads
Skip it if this limit matters to you: being superseded by pyogrio inside GeoPandas.
Verdict. A sensible pick for reading and writing vector files record by record.
pyogrio
Best for fast bulk vector IO inside GeoPandas

What it is and where it fits
pyogrio is a Python binding to GDAL's OGR vector IO built for speed. It reads a layer into arrays in one call and writes GeoDataFrames back out, avoiding per-feature Python loops. GeoPandas uses it as the default engine for read_file and to_file, and you can call it directly when you want control over layers, columns and filters.
It runs on Windows, macOS and Linux and installs from conda-forge or pip. The licence is MIT. The scope is deliberately narrow: pyogrio does no geometry operations, reprojection or plotting, so it complements Shapely and pyproj rather than replacing them. Skip it if you need feature-by-feature streaming, where Fiona is a better fit.
Standout: Vectorized reads and writes through GDAL
Free (open source), as listed by the vendor (pyogrio website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Vectorized reads and writes through GDAL
- default engine in recent GeoPandas
Drawbacks
- Narrow scope, IO only
- depends on the GDAL native library
Skip it if this limit matters to you: narrow scope, IO only.
Verdict. A sensible pick for fast bulk vector IO inside GeoPandas.
Rasterio
Best for reading and writing raster data such as GeoTIFF

What it is and where it fits
Rasterio reads and writes raster formats through GDAL and returns NumPy arrays with transform, CRS and nodata metadata attached. Windowed reads let you process a tile of a large image without loading the whole file. It also handles reprojection on read and write and mask handling.
It runs on Windows, macOS and Linux and installs from conda-forge or pip. The licence is BSD-3-Clause. Rasterio is IO and metadata focused; analysis such as zonal statistics usually means combining it with NumPy, GeoPandas or a dedicated raster library. Skip it if your data is vector only.
Standout: NumPy arrays with georeferencing metadata
Free (open source), as listed by the vendor (Rasterio website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- NumPy arrays with georeferencing metadata
- windowed reads for large files
Drawbacks
- Needs the GDAL native library
- raster math is left to NumPy and other tools
Skip it if this limit matters to you: needs the GDAL native library.
Verdict. A sensible pick for reading and writing raster data such as GeoTIFF.
pyproj
Best for coordinate reference system transforms and geodesic calculations
What it is and where it fits
pyproj is the Python interface to the PROJ library. It transforms coordinates between coordinate reference systems, parses CRS definitions from EPSG codes, WKT and PROJ strings, and computes geodesic distance and area on the ellipsoid. GeoPandas and Rasterio both rely on it for reprojection.
It runs on Windows, macOS and Linux and installs from conda-forge or pip. The licence is MIT. The main limit is conceptual: picking the right CRS and transform for a region takes care, and a wrong choice produces plausible but incorrect coordinates. Skip it if your data is already in one CRS and you never reproject.
Standout: Full PROJ transformer API
Free (open source), as listed by the vendor (pyproj website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Full PROJ transformer API
- geodesic distance and area functions
Drawbacks
- CRS definitions take time to learn
- no data IO or plotting
Skip it if this limit matters to you: CRS definitions take time to learn.
Verdict. A sensible pick for coordinate reference system transforms and geodesic calculations.
GDAL Python bindings
Best for low-level access to every GDAL format and driver

What it is and where it fits
The GDAL Python bindings expose the full GDAL and OGR API: datasets, bands, drivers, spatial reference systems and utilities. They are the layer that Rasterio, Fiona and pyogrio build on. Use them when a wrapper does not expose a driver option or format you need, or when you are writing tooling that must cover many formats.
They ship with GDAL and run on Windows, macOS and Linux. The licence is MIT. The API is low-level and object lifetimes and error handling take practice. Most application code is shorter and safer with Rasterio, Fiona or pyogrio. Skip the bindings unless you need something the wrappers do not offer.
Standout: Covers formats and options the wrappers omit
Free (open source), as listed by the vendor (GDAL Python bindings website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Covers formats and options the wrappers omit
- ships with GDAL itself
Drawbacks
- Verbose, low-level API
- steep learning curve
Skip it if this limit matters to you: verbose, low-level API.
Verdict. A sensible pick for low-level access to every GDAL format and driver.
Folium
Best for interactive Leaflet maps from Python data
What it is and where it fits
Folium generates Leaflet maps as HTML. You add markers, GeoJSON layers, choropleth layers and tile layers from Python, then save the result as an HTML file or display it in a notebook. It works well for quick visual checks of vector data and for sharing a map without a server.
It runs anywhere Python runs and installs with pip or conda. The licence is MIT. The output is HTML that opens offline, but the default base tiles come from a remote tile server, so the map needs network access to show a basemap. Do not put private coordinates on a public map you plan to share. Skip it if you need static image output for print.
Standout: Builds Leaflet maps with markers, choropleths and layers
Free (open source), as listed by the vendor (Folium website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Builds Leaflet maps with markers, choropleths and layers
- output is standalone HTML
Drawbacks
- Needs a browser to view
- base tiles load from a remote tile server
Skip it if this limit matters to you: needs a browser to view.
Verdict. A sensible pick for interactive Leaflet maps from Python data.
H3-py
Best for hexagonal grid indexing of geographic points

What it is and where it fits
H3-py is the Python binding for Uber's H3 hexagonal hierarchical index. It converts latitude and longitude to cell IDs at a chosen resolution, returns cell boundaries as polygons, and supports neighbor and parent-child lookups. It suits aggregation, binning and joining datasets by cell.
It runs on Windows, macOS and Linux and installs with pip or conda. The licence is Apache-2.0. H3 is an indexing scheme, not a replacement for geometry operations; pair it with Shapely or GeoPandas for shapes and attributes. Cell area changes with resolution and latitude, so pick a resolution before you aggregate.
Standout: Fast point-to-cell and cell-to-boundary functions
Free (open source), as listed by the vendor (H3-py website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Fast point-to-cell and cell-to-boundary functions
- consistent cell areas per resolution
Drawbacks
- Grid only, not a general geometry library
- resolution choice affects results
Skip it if this limit matters to you: grid only, not a general geometry library.
Verdict. A sensible pick for hexagonal grid indexing of geographic points.
OSMnx
Best for downloading and analyzing OpenStreetMap street networks

What it is and where it fits
OSMnx downloads street networks, buildings and other features from OpenStreetMap, builds NetworkX graphs, and computes routes, distances and network statistics. It handles projection to a local CRS and can save results as GeoDataFrames or GraphML.
It runs on Windows, macOS and Linux and installs from conda-forge or pip. The licence is MIT. Downloads go through the Overpass API, which has usage limits and can be slow or unavailable for large areas, so cache results. Skip it if your data is not from OpenStreetMap or you only need to read local files.
Standout: Builds NetworkX graphs from OSM data
Free (open source), as listed by the vendor (OSMnx website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Builds NetworkX graphs from OSM data
- handles projections and network stats
Drawbacks
- Depends on the Overpass API and its rate limits
- not for general vector IO
Skip it if this limit matters to you: depends on the Overpass API and its rate limits.
Verdict. A sensible pick for downloading and analyzing OpenStreetMap street networks.
Who should use what
If you analyze tables with geometry, start with GeoPandas and let it pull in Shapely and pyproj. If you only do geometry math on single shapes, use Shapely alone. If you process satellite or elevation rasters, use Rasterio. If you need to share an interactive map, use Folium. If you work with street networks from OpenStreetMap, use OSMnx. Teams that must support many file formats at a low level can drop to the GDAL bindings, but most application code will be shorter with the higher-level libraries.
Questions to settle before you buy
What to check before you buy
- Confirm the library supports the file formats and CRS you actually use.
- Check that GEOS, GDAL and PROJ install cleanly on your OS, or use conda-forge.
- Verify the licence fits your project, since all listed libraries are permissive but terms differ.
- Test performance on a real file size before building a pipeline around bulk reads.
- For maps, check whether base tiles need network access and whether your data can be public.
FAQ
Do I need GDAL installed to use GeoPandas?
Yes. GeoPandas depends on the GDAL, GEOS and PROJ native libraries. Installing from conda-forge is the most reliable route on Windows, macOS and Linux. pip wheels exist but can fail when system library versions conflict.
Is Fiona still needed if I use GeoPandas?
Not for most work. Recent GeoPandas versions use pyogrio as the default IO engine. Fiona remains available as an engine and is still maintained, but new projects that only need bulk reads and writes can rely on pyogrio.
Can I use these libraries offline?
Yes for computation and file IO. GeoPandas, Shapely, Rasterio and pyproj run fully offline once installed. Folium maps open offline, but basemap tiles load from a remote tile server. OSMnx needs network access to download data from OpenStreetMap.
Are these libraries free for commercial use?
All the libraries listed use permissive open-source licences: BSD-3-Clause, MIT or Apache-2.0. Check each project's licence file for the exact terms. None of them require a paid subscription.
What is the difference between Shapely and GeoPandas?
Shapely handles geometry objects and operations on single shapes. GeoPandas adds tabular data, file IO, spatial joins and plotting on top of Shapely. Use Shapely for geometry math and GeoPandas when you need to manage many features with attributes.
Sources we checked
Method: how we score · editorial policy.
Change log. First published 27 Nov 2026.