Shapely

What is Shapely?

Shapely is a BSD-licensed Python library designed for the manipulation and analysis of planar geometric objects. It leverages the GEOS geometry library, which is widely used in open-source projects like PostGIS and is a port of the Java Topology Suite (JTS). Shapely provides a rich set of features for working with individual (scalar) geometries, and it also offers high-performance operations for arrays of geometries through integration with NumPy. While Shapely doesn't focus on data serialization formats or coordinate systems, it easily integrates with other packages that do.

Installation

pip install shapely

GitHub Repo

https://github.com/shapely/shapely

Shapely Docs

https://shapely.readthedocs.io/