Releases: rasterio/rasterio
1.3.5
Happy New Year!
Bug fixes
- Fixed plot.show(adjust=True) with respect to 16-bit integer data (#2733).
- Align offsets in rio-clip as well as height and width to match gdal_translate with -projwin (#2729).
- Allow rio-warp's --target-aligned-pixels option to be used with --dst-bounds or --src-bounds (#2729).
- Normalize paths before calling os.add_dll_directory on Windows (#2705).
- Affine version 2.4.0 exposes a bug in Rasterio's test_deprecated.py module, a test than erroneously fails. This test has been fixed and passes with all versions of the affine module.
- Better, recursive cleanup of MemoryFile /vsimem/ directories.
- Python ignores SIGPIPE by default. By never catching BrokenPipeError via
except Exception
when, for example, piping the output of rio-shapes to the Unix head program, we avoid getting an unhandled BrokenPipeError message when the interpreter shuts down (#2689). - Fixes for unsigned access to S3 (#2688, backport of #2669).
- Ignore blockysize when converting untiled datasets to tiled datasets (#2687, backport of #2678).
1.3.4
This version is good for use with GDAL 3.6.0 as well as previous versions.
Bug fixes
- Use Python long for FilePath VSI plugin's file position (#2652).
- In the case that a GDAL function returns NULL but doesn't set an error, we now raise SystemError instead of silently failing (#2645).
- Azure storage access key can be taken from the environment if not explicitly provided to AzureSession (#2637).
- Skip empty parts of PATH on Windows when adding DLL directories (#2626).
- get_data_window is fixed for the case where the nodata value is nan (#2629).
- Ensure that GTiff, not COG, driver is used by default for TIFFs (#2634).
Other Changes
1.3.3
Packaging
The rasterio._loading module, which supports DLL loading on Windows, has been moved into __init__.py
and is no longer used anywhere else (#2594).
Bug fixes
1.3.2
1.3.1 was packaged from a branch that lacked the advertised bug fixes. 1.3.2 fixes the problem. Packaging and bug fix notes from 1.3.1 are reiterated below.
The GitHub release and discussion for 1.3.1 have been deleted.
Packaging
Wheels for 1.3.2 are built using the version of rasterio-wheels dated 2022-08-17 and include PROJ 9.0.1 and GDAL 3.5.1.
Bug fixes
- get_data_window has been improved and extended to 1D (#2510).
- Broadcasting of coordinates in transform.xy has been restored (#2538).
- A bug in nodata filling (#2474) has been fixed by patching GDAL (wheels only).
- Support for PROJ_DATA has been added (#2530).
- Non-informative errors arising from opening a dataset in write mode are silenced (#2525).
- N-D arrays are once again accepted by sampling.sample_gen (#2547).
- MemoryDataset's memory layout has been fixed to properly support non-contiguous data (#2512).
1.3.0.post1
This release fixes two packaging issues. The project code itself has no changes other than an updated version string and a new change log entry.
- Linux and macOS wheels for 1.3.0 were built without ZSTD support in the GeoTIFF driver (see rasterio/rasterio-wheels#87 and #2542). This has been fixed.
- Windows wheels for 1.3.0 included GDAL 3.4.3. They now include GDAL 3.5.1, as do the Linux and macOS wheels.
1.3.0
Rasterio 1.3.0 has new features, deprecations, and many bug fixes. It supports Python versions 3.8+ and GDAL versions 3.1+. Please see https://github.com/rasterio/rasterio/blob/master/CHANGES.txt for a fine grain description of changes since 1.2.10. Major changes and deprecations are listed below.
Packaging
- Building from source now requires Cython (#2016).
- PyPI wheels include GDAL 3.5.0 and PROJ 9.0.0.
Deprecations:
- The rasterio.path module has been moved to rasterio._path and all its member made private (#2423). A new version of rasterio.path temporarily provides aliases to maintain compatibility.
New features:
- A dataset's write method now accepts Numpy masked arrays and has a "masked" keyword argument. In this case, if masked is False, the masked array's filled method is called with the dataset's nodata value or else the masked array's fill value. If the masked argument is True, the dataset's write_mask method is called.
- Datasets have a new statistics method that computes the minimum, maximum, mean, and standard deviation of a raster band's data, matching the output of gdalinfo (#2441).
- The rio-warp CLI command now takes --wo (--warper-option) and --to (--transformer-option) options, allowing the use of PROJ coordinate transformation pipelines like "--to coordinate_operation=proj=pipeline" (#2438).
- Python file objects and file-like objects from, for example, fsspec are adapted for opening to get a dataset without copying file data to a MemoryFile (#2141).
- Added support for PROJ JSON based interchange for CRS (#2212).
- More efficient window intersection and union (#2164).
- New Affine, GCP, and RFC transformer classes (#2225).
1.3b3
1.3b2
1.3b2 is Rasterio's second pre-release containing a nearly complete view of new features for 1.3.0. We're not accepting new features for 1.3.0 and are only working on major runtime and installation bugs. If you would be willing to try out this pre-release and provide feedback on GitHub, or in responses to this email, the 1.3.0 release will be better and will arrive sooner.
There's one significant bug fix since 1.3b1: error contexts no longer leak from use of GDAL's coordinate transformer.
Our set of binary wheels is small right now, but we'll keep working on that, and will send updates when we've added support for more platforms.
1.3b1
1.3b1 is Rasterio's first pre-release containing a nearly complete view of new features for 1.3.0. We're not accepting new features for 1.3.0 and are only working on major runtime and installation bugs. If you would be willing to try out this pre-release and provide feedback on GitHub, or in responses to this email, the 1.3.0 release will be better and will arrive sooner.
There's one new feature since 1.3a4: support for writing both band data and band mask when passing a Numpy MaskedArray to a dataset's write method. Perhaps more interesting is that the binary wheels on PyPI include GDAL 3.5.0rc4 and PROJ 9.0.0, the latest versions of each.
Our set of binary wheels is small right now, but we'll keep working on that, and will send updates when we've added support for more platforms.
Big thanks to everyone who contributed since 1.3a4, particularly Alan Snow, who cleaned up a lot of obsolete code that was supporting older versions of GDAL.
Rasterio 1.3a2
The second 1.3 pre-release is on the package index this morning. There's one new feature: PROJJSON support (thank you, Alan Snow) and one change to the reprojection code that prevents unnecessary data copying when warping raster data stored in a numpy array (thank you, Ryan Grout). Your feedback on these would be greatly appreciated!