Releases: rasterio/affine
Releases ยท rasterio/affine
3.0b1
3.0a1
This is the first pre-release of Affine version 3.0. There is one major, potentially breaking change: the Affine
class is no longer a named tuple, and is no longer serializable to JSON without an adapter of some kind. That said, Rasterio 1.4 needed only minor changes to work with Affine 3.0, and we hope that other projects are similarly easy to update.
New features
- Type hint annotations for functions and methods are complete (#121).
- Affine raises ValueError if initialized with values for g, h, and i that are not 0.0, 0.0, and 1.0, respectively (#117).
- Python version support was changed to 3.9+ (#110).
- Switch from namedtuple to attrs for implementation of the Affine class and use functools.cached_property(), which absolutely requires Python 3.8 (#111).
- Source was moved to a single-module affine.py in the src directory (#112).
- Add numpy
__array__()
interface (#108). - Add support for
@
matrix multiplier methods (#122).