Shapely 1.8.0 is a transitional version introducing several warnings in preparation of the upcoming changes in 2.0.0.
Shapely 1.8.0是一个过渡性的版本,为即将到来的2.0.0中的变化引入了一些警告。
Shapely 2.0.0 will be a major release with a refactor of the internals with considerable performance improvements (based on the developments in the PyGEOS package), along with several breaking changes.
Shapely 2.0.0将是一个重要的版本,对内部结构进行了重构,对性能进行了相当大的改进(基于PyGEOS包的发展),同时还有一些突破性的变化。
This guide gives an overview of the most important changes with details on what will change in 2.0.0, how we warn for this in 1.8.0, and how you can update your code to be future-proof.
本指南概述了最重要的变化,并详细介绍了2.0.0中的变化,我们如何在1.8.0中对此进行警告,以及你如何更新你的代码以适应未来的需要。
For more background, see RFC 1: Roadmap for Shapely 2.0.
更多背景信息,请参见 RFC 1: Roadmap for Shapely 2.0.
文章
- Geometry objects will become immutable(几何对象将不可变)
- Multi-part geometries will no longer be “sequences” (length, iterable, indexable)(多部件几何对象将不再是Sequence类型。)
- Interopability with NumPy and the array interface(与NumPy和数组接口的互操作)
- Consistent creation of empty geometries(创建空的几何对象)
- Other deprecated functionality(其他废除的功能)