* Take into account GDAL >= 3.7 GDT_Int8 signed int8 datatype (fixes#2635) (#2656)
* ENH: Added int8 dtype to rasterize (#2780)
---------
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
Co-authored-by: Alan D. Snow <alansnow21@gmail.com>
* Use GDAL_PAM_ENABLED=False in combo with FilePath
Resolves#2826
* Turn down logging level in Python File VSI plugin callback
* Rename test, add missing details to FilePath docstring
* Note fix for 2826
Fixes#2787.
The method of computing raster bounds in `rasterio.transform.array_bounds`
assumes a standard GIS orientation of the image - origin bottom left, north
up, east right. If the image is rotated in any way, the returned bounds
may be in the correct order (e.g. `east` is west of `west`), or may
be entirely incorrect.
Replace the current implementation with the more general calculation used
in DatasetBase.bounds. Add an array of tests to both implementations,
passing in various transforms.
Fixes#2787.
The method of computing raster bounds in `rasterio.transform.array_bounds`
assumes a standard GIS orientation of the image - origin bottom left, north
up, east right. If the image is rotated in any way, the returned bounds
may be in the correct order (e.g. `east` is west of `west`), or may
be entirely incorrect.
Replace the current implementation with the more general calculation used
in DatasetBase.bounds. Add an array of tests to both implementations,
passing in various transforms.
* Add a new StatisticsError exception class
Also make an outer `with Env():` optional when using an opened
dataset as a context manager.
Resolves#2759
* Add PR refs to the change log
* Chain the StatisticsError exception
* BUG: Fixes for unsigned access to S3 (#2669)
* Add parse_bool helper method
This is for parsing boolean environment variables
* Fix s3_endpoint config when unsigned
S3 endpoint configuration was not propagated to GDAL when accessing
public buckets.
* Allow AWSSession construction without boto3
Should be able to use AWSSession even when boto3 is not installed so
long as unsigned access is used.
AWSSession is responsible to configuration of things like region and
endpoint url, so it's needed even when accessing public buckets without
relying on environment variables. `boto3` dependency is only needed for
obtaining credentials though.
* Convert parse_bool test to parametrize for clarity
* Update change log
Co-authored-by: Kirill Kouzoubov <Kirill888@gmail.com>
* Add parse_bool helper method
This is for parsing boolean environment variables
* Fix s3_endpoint config when unsigned
S3 endpoint configuration was not propagated to GDAL when accessing
public buckets.
* Allow AWSSession construction without boto3
Should be able to use AWSSession even when boto3 is not installed so
long as unsigned access is used.
AWSSession is responsible to configuration of things like region and
endpoint url, so it's needed even when accessing public buckets without
relying on environment variables. `boto3` dependency is only needed for
obtaining credentials though.
* Convert parse_bool test to parametrize for clarity