Shapely

Latest version: v2.0.6

Safety actively analyzes 681881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

2.0.2

------------------

Bug fixes:

- Fix regression in the (in)equality comparison (``geom1 == geom2``) using ``__eq__`` to
not ignore the z-coordinates (1732).
- Fix ``MultiPolygon()`` constructor to accept polygons without holes (1850).
- Fix ``minimum_rotated_rectangle`` (``oriented_envelope``) to always return
the minimum area solution (instead of minimum width). In practice, it will use the
GEOS implementation only for GEOS 3.12+, and for older GEOS versions fall back to the
implementation that was included in Shapely < 2 (1670).
- Fix ``from_ragged_array`` to work with read-only array input (1744).
- Fix the handling of z coordinates ``shapely.ops.substring`` (1699).

Wheels are available for Python 3.12 (and still include GEOS 3.11.2). Building
from source is now compatible with Cython 3.

For a full changelog, see
https://shapely.readthedocs.io/en/latest/release/2.x.html#version-2-0-2

2.0.1

------------------

Bug fixes:

- Fix regression in the ``Polygon()`` constructor taking a sequence of Points (1662).
- Fix regression in the geometry constructors when passing ``decimal.Decimal``
coordinate values (1707).
- Fix ``STRtree()`` to not make the passed geometry array immutable as side-effect of
the constructor (1714).
- Fix the ``directed`` keyword in ``shapely.ops.linemerge()`` (1695).

Improvements:

- Expose the function to get a matplotlib Patch object from a (Multi)Polygon (without
already plotting it) publicly as :func:`shapely.plotting.patch_from_polygon` (1704).

For a full changelog, see
https://shapely.readthedocs.io/en/latest/release/2.x.html#version-2-0-1

2.0.0

------------------

Shapely version 2.0.0 is a major release featuring a complete refactor of the
internals and new vectorized (element-wise) array operations providing
considerable performance improvements.

For a full changelog, see
https://shapely.readthedocs.io/en/latest/release/2.x.html#version-2-0-0

2.0rc3

- Added temporary support for unpickling shapely<2.0 geometries.

2.0rc1

-------------------

2.0b2

------------------

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.