Shapely 1.8.0 is a transitional version. There are a few bug fixes and new features, but it largely exists to warn about the upcoming changes in 2.0.0. See the new migration guide for more details on how to update your code from Shapely 1.8 to 2.0.
Python version support
Shapely 1.8.0 supports only Python versions >= 3.6. The release is compatible with GEOS versions 3.6-3.10.
Deprecations
The following functions and geometry attributes and methods will be removed in version 2.0.0.
ops.cascaded_union
BaseGeometry.empty
BaseGeometry.ctypes and __array_interface__
multi-part geometry __len__
setting custom attributes on geometry objects
BaseGeometry.almost_exact
Deprecation warnings will be emitted in 1.8.0 when any of these features are used.
The deprecated to_wkb and to_wkt methods of BaseGeometry have been removed.
New features
The STRtree nearest* methods now take an optional argument that specifies exclusion of the input geometry from results (#1115).
A GeometryTypeError has been added to shapely.errors and is consistently raised instead of TypeError or ValueError as in version 1.7. For backwards compatibility, the new exception will derive from TypeError and Value error until version 2.0 (#1099).
The STRtree class constructor now takes an optional second argument, a sequence of objects to be stored in the tree. If not provided, the sequence indices of the geometries will be stored, as before (#1112).
The STRtree class has new query_geoms, query_items, nearest_geom, and nearest_item methods (#1112). The query and nearest methods remain as aliases for query_geoms and nearest_geom.
A normalize method has been added to geometry classes, exposing the GEOSNormalize algorithm (#1090).
STRtree instances have a new default capacity of 10 items per node (#1070).
The new shapely.ops.voronoi_diagram computes the Voronoi Diagram of a geometry or geometry collection (#833, #851).
This post-release addresses a defect in the 1.8.1 source distribution. No .c
files are included in the 1.8.1.post1 sdist and Cython is required to build and
install from source.
1.8.1 (2022-02-16)
Packaging:
Wheels for 1.8.1 published on PyPI include GEOS 3.10.2. This version is the
best version of GDAL yet. Discrepancies in behavior compared to previous
versions are considered to be improvements.
For the first time, we will publish wheels for macos_arm64 (see PR #1310).
Python version support:
Shapely 1.8.1 works with Pythons 3.6-3.10.
Bug fixes:
Require Cython >= 0.29.24 to support Python 3.10 (#1224).
This is the final 1.8.0 release. There have been no changes since 1.8rc2.
1.8rc2 (2021-10-19)
Build:
A pyproject.toml file has been added to specify build dependencies for the
_vectorized and _speedups modules (#1128). To install shapely without these
build dependencies, use the features of your build tool that disable PEP 517
and 518 support.
Bug fixes:
Part of PR #1042, which added a new primary GEOS library name to be searched
for, has been reverted by PR #1201.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps shapely from 1.7.1 to 1.8.1.post1.
Release notes
Sourced from shapely's releases.
Changelog
Sourced from shapely's changelog.
... (truncated)
Commits
77886dc
Remove asterisk from change log9254f4a
This is 1.8.1.post1 really9564ea8
Good bye .c files (#1321)712135b
Remove CFLAGS7b6be36
Fix flagb379ea5
Ensure numpy is installed for sdist build3078195
This is 1.8.1776a186
Backport releasing workflow from main (#1310)35b3e38
Update manual version from 1.7.0 to 1.8.0 (#1284)6f716fe
CI: remove AppVeyor, add Windows and macOS to CI testing, remove 'dev' (#1272)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)