# Shapely

> Python library for manipulating and analysing planar geometric objects, on GEOS

Source: https://talira.ai/catalog/shapely-g91vg3hg
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [location / spatial analysis](https://talira.ai/categories/location/spatial-analysis), [languages / python](https://talira.ai/categories/languages/python)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Shapely Contributors](https://talira.ai/orgs/shapely-contributors.md)

Shapely is a Python package for manipulating and analysing planar geometric objects (points, lines, polygons and their collections) in the Cartesian plane. It wraps GEOS, the geometry engine behind PostGIS, and offers both a `Geometry` interface for single geometries and fast vectorised [NumPy](https://talira.ai/catalog/numpy-4ssygecp.md) ufuncs for arrays of them, releasing the GIL so the heavy work can run in several threads. It doesn't deal with file formats or coordinate systems itself but works alongside packages that do.

## Links

- Website: https://shapely.readthedocs.io/en/stable/
- GitHub: https://github.com/shapely/shapely

## Problems it solves

- check whether a point is inside a polygon in Python
- buffer, intersect and union shapes for GIS analysis in Python
- run geometry operations on large arrays of shapes quickly with NumPy

## Features

- points, lines, polygons and collections in the plane
- GEOS geometry operations such as buffering, through a Geometry interface
- vectorised NumPy ufuncs for arrays of geometries
- releases the GIL so operations can run in parallel threads
- pip and conda-forge builds

## Limitations

- It doesn't handle file formats or coordinate reference systems; you pair it with other packages for those.[^1]
- Shapely 2.3 needs Python 3.12 or later, GEOS 3.11 or later and NumPy 1.26 or later.[^1]

## Trust

Overall: 0.64 out of 1.
Signals: maintenance 0.91, adoption 0.73, momentum 0.43, community 0.90, backing 0.30, extensibility 0.00.

- last commit 23 days ago
- 47 commits in the last 90 days
- latest release 2.2.0 54 days ago
- 4.6k GitHub stars
- 177 contributors
- backed by Shapely Contributors

## Related

- Works with [NumPy](https://talira.ai/catalog/numpy-4ssygecp.md)
- Based on [GEOS](https://talira.ai/catalog/geos-hp60fk20.md)

## Alternatives

- [GeoPandas](https://talira.ai/catalog/geopandas-wehrfx8a.md): Geographic data support for pandas DataFrames in Python
- [QGIS](https://talira.ai/catalog/qgis-k1ar4nfc.md): Free and open source geographic information system for Linux, Windows and macOS

## Sources

[^1]: https://github.com/shapely/shapely/blob/main/README.rst (checked 28 Nov 2026)
[^2]: https://github.com/shapely/shapely/blob/main/LICENSE.txt (checked 28 Nov 2026)
