Shape

Latest version: v0.1.1

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

Scan your dependencies

Page 2 of 18

1.7.1

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

- ``STRtree`` now safely implements the pickle protocol (915).
- Documentation has been added for ``minimum_clearance`` (875, 874).
- In ``STRtree.__del__()`` we guard against calling ``GEOSSTRtree_destroy``
when the lgeos module has already been torn down on exit (897, 830).
- Documentation for the ``overlaps()`` method has been corrected (920).
- Correct the test in ``shapely.geometry.base.BaseGeometry.empty()`` to
eliminate memory leaks like the one reported in 745.
- Get free() not from libc but from the processes global symbols (891),
fixing a bug that manifests on OS X 10.15 and 10.16.
- Extracting substrings from complex lines has been made more correct (848,
849).
- Splitting of complex geometries has been sped up by preparing the input
geometry (871).
- Fix bug in concatenation of function argtypes (866).
- Improved documentation of STRtree usage (857).
- Improved handling for empty list or list of lists in GeoJSON coordinates
(852).
- The polylabel algorithm now accounts for polygon holes (851, 817).

1.7.0

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

This is the final 1.7.0 release. There have been no changes since 1.7b1.

1.7b1

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

First beta release.

1.7a3

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

New features:

- The buffer operation can now be single-sides (806, 727).

Bug fixes:

- Add /usr/local/lib to the list of directories to be searched for the GEOS
shared library (795).
- ops.substring now returns a line with coords in end-to-front order when given
a start position that is greater than the end position (628).
- Implement ``__bool__()`` for geometry base classes so that ``bool(geom)``
returns the logical complement of ``geom.is_empty`` (754).
- Remove assertion on the number of version-like strings found in the GEOS
version string. It could be 2 or 3.

1.7a2

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

- Nearest neighbor search has been added to STRtree (668).
- Disallow sequences of MultiPolygons as arguments to the MultiPolygon
constructor, resolving 588.
- Removed vendorized `functools` functions previously used to support
Python 2.5.

Bug fixes:

- Avoid reloading the GEOS shared library when using an installed binary wheel
on OS X (735), resolving issue 553.
- The shapely.ops.orient function can now orient multi polygons and geometry
collections as well as polygons (733).
- Polygons can now be constructed from sequences of point objects as well as
sequences of x, y sequences (732).
- The exterior of an empty polygon is now equal to an empty linear ring (731).
- The bounds property of an empty point object now returns an empty tuple,
consistent with other geometry types (723).
- Segmentation faults when non-string values are passed to the WKT loader are
avoided by 700.
- Failure of ops.substring when the sub linestring coincides with the beginning
of the linestring has been fixed (658).
- Segmentation faults from interpolating on an empty linestring are prevented
by 655.
- A missing special case for rectangular polygons has been added to the
polylabel algorithm (644).
- LinearRing can be created from a LineString (638).
- The prepared geometry validation condition has been tightened in 632 to fix
the bug reported in 631.
- Attempting to interpolate an empty geometry no longer results in a
segmentation fault, raising `ValueError` instead (653).

1.7a1

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

New features:

- A Python version check is made by the package setup script. Shapely 1.7
supports only Python versions 2.7 and 3.4+ (610).
- Added a new `EmptyGeometry` class to support GeoPandas (514).
- Added new `shapely.ops.substring` function (459).
- Added new `shapely.ops.clip_by_rect` function (583).
- Use DLLs indicated in sys._MEIPASS' to support PyInstaller frozen apps
(523).
- `shapely.wkb.dumps` now accepts an `srid` integer keyword argument to write
WKB data including a spatial reference ID in the output data (593).

Bug fixes:

- `shapely.geometry.shape` can now marshal empty GeoJSON representations
(573).
- An exception is raised when an attempt is made to `prepare`
a `PreparedGeometry` (577, 595).
- Keyword arguments have been removed from a geometry object's `wkt` property
getter (581, 594).

Page 2 of 18

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.