Rasterio

Latest version: v1.4.2

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

Scan your dependencies

Page 2 of 28

1.4a3

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

This version is compatible with recent versions of Numpy 1.x and Numpy
2.0.0rc1.

Packaging:

- Wheels will be built using Numpy 2.0.0rc1 or a newer version and will be
compatible with the oldest supported Numpy 1.x.

Bug fixes:

- Rasterio's python opener VSI plugin prefix has been changed to "vsiriopener"
to not conflict with Fiona.
- Complex dtypes and nodata values can be used in merge() without errors or
warnings (3046).
- The use of approximate transformers is disable in the geolocation array
warping case, as they already are for RPCs (3056).
- All use of pkg_resouces has been eliminated (3061).
- Non-strings may once again be used as values of the dtype keyword argument of
rasterize(), fixing a bug introduced in 1.4a1 (3045).

Other changes:

- Performance of Transformers and rowcol() have been improved by relying more
on NumPy (3103).

1.4a2

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

Python support:

- Rasterio 1.4 requires Python version 3.9 or newer.

New features:

- Python openers can now support discovery of auxiliary "sidecar" files like
.aux.xml, .msk, and .tfw files for GeoTIFFs (3032). Additionally, filesystem
objects, such as those from fsspec, can be used as openers. This will become
the recommended usage, supplanting the use of single file openers.

Bug fixes:

- The rio CLI output file options no longer resolve to absolute paths.
- gzip, tar, and zip archive URIs containing drive letters were not always
parsed properly on Windows, but are now.

1.4a1

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

Deprecations:

- The is_tiled property of a dataset will be removed in a future version and
a pending deprecation warning will be raised if it is used (3015). This
warning may be changed to a deprecation warning at version 1.5.0. Please
consider copying the body of the property to your own project. It's just one
line.
- The is_valid property of the CRS class is not useful and will be removed in
version 2.0 (2919).
- The FilePath class has been supplanted by rasterio.open's new opener keyword
argument and its associated GDAL virtual filesystem plugin. It will be
removed in version 2.0 (2919).

New Features:

- The Window class has a new round() method (3022). It has the same parameter
as Python's built in round() and applies it to the window's offsets and
lengths. It is used internally to avoid sub-pixel errors when reading from
and writing to datasets.
- The merge tool and merge CLI command can create very large output datasets
without using more memory than the user chooses (3022). Merge output is
processed in chunks that default to 64 MB.
- Errors that GDAL handles internally within GDALDatasetRasterIO() and
GDALRasterIO() and WarpAndChunk() are chained together to be visible and
accessable from Python (2526).
- The new "rio create" command allows creation of new, empty datasets (3023).
- An optional range keyword argument (like that of numpy.histogram()) has been
added to show_hist() (2873, 3001).
- Datasets stored in proprietary systems or addressable only through protocols
not directly supported by GDAL can be accessed using the new opener keyword
argument of rasterio.open() (2898, 2907). This new feature is intended to
completely replace the FilePath class introduced in 1.3.0.
- Deallocate list of warp extras in _reproject(), fixing a potential leak
(494).
- Adjust several tests to small differences in output between GDAL 3.7 and 3.8
(2959).
- The output file size limits of rio-warp were made redundant by changes to the
GTiff driver in GDAL 2.1 and have been removed (2889). A --dry-run option
has been added to the command. If used, the profile of the output dataset
will be printed and no warping will occur.

Bug fixes:

- A nodata value passed to _boundless_vrt_doc(), used for boundless reads, has
been ignored in favor of the source dataset's own nodata value. It is no
longer ignored (3026).
- Avoid squeezing narrow 2-D arrays to 1-D (3008).
- Operations on closed MemoryFile and ZipMemoryFile objects now raise
ValueError as with other Python file objects (2870, ).
- Delay clamping of I/O windows until just before GDAL methods calls to improve
accuracy of sub-pixel reads (2864).

Other changes:

- The logic of is_tiled has been simplified to match GDAL's own internal logic
and do nothing more. It's now only a test that a raster's block width is not
equal to the raster width (3015).
- rasterize() better matches the behavior of Numpy array constructors. It no
longer reduces the bit width of output, returning either float64 or int64
arrays unless a data type is explicitly selected, and the fill parameter no
longer has an effect on the default data type (3003).
- Rasterio now vendors and modifies the snuggs module (2956).
- Given an empty shapes argument, rasterize() now returns an empty array
(2993).
- AffineTransformer's bulk transformations have been sped up by replacing
a loop with a Numpy ufunc (2936).
- The crop and invert mutual exclusivity test in raster_geomtry_mask() has been
removed (2702).

1.3.10

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

This version is compatible with recent versions of Numpy 1.x and Numpy
2.0.0rc1.

Packaging:

- Wheels for Python versions >= 3.9 will be built using Numpy 2.0.0rc1 or
a newer version and will be compatible with the oldest supported Numpy 1.x.
- Wheels for Python version 3.8 will be built using the oldest supported
version of NumPy and will not be compatible with Numpy 2.

Bug fixes:

- Rasterio's merge function and CLI command cannot handle rotated rasters. This
is now noted in documentation and an error will be raised if any input is
non-rectilinear (3066).
- Usage of pytest.warns(None) has been eliminated (3054).
- All use of pkg_resouces has been eliminated (3054).

1.3.9

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

Bug fixes:

- Lean on numpy for minimum and maximum values of float data types (2946).
- Replace rasterio.dtypes.in_dtype_range() with the version inside the
edit-info command (2946).
- Deallocate _filepath VSI filesystem plugin callback structs to prevent the
memory leak reported in 2932.

Packaging:

GDAL 3.6.4 is patched in the PyPI wheels to fix the potential GTiff
multithreading deadlock reported in https://github.com/OSGeo/gdal/issues/8470.

1.3.8.post2

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

There are no code changes in this release. This is only to create new wheels
that update curl to version 8.4.0 to address CVE-2023-38545 and CVE-38546.

Page 2 of 28

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.