Rio-tiler

Latest version: v6.6.1

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

Scan your dependencies

Page 13 of 31

2.1.1

* add support for setting the S3 endpoint url via the `AWS_S3_ENDPOINT` environment variables in `aws_get_object` function using boto3 (https://github.com/cogeotiff/rio-tiler/pull/394)
* make `ImageStatistics.valid_percent` a value between 0 and 100 (instead of 0 and 1) (author param-thakker, https://github.com/cogeotiff/rio-tiler/pull/400)
* add `fetch_options` to `STACReader` to allow custom configuration to the fetch client (https://github.com/cogeotiff/rio-tiler/pull/404)

python
with STACReader("s3://...", fetch_options={"request_pays": True}):
pass


* Fix alpha band values when storing `Uint16` data in **PNG**. (https://github.com/cogeotiff/rio-tiler/pull/407)

2.1.0

* add auto-rescaling in `ImageData.render` method to avoid error when datatype is not supported by the output driver (https://github.com/cogeotiff/rio-tiler/pull/391)

python
before - exit with error
with open("img.png", "wb") as f:
f.write(ImageData(numpy.zeros((3, 256, 256), dtype="float32")).render())
>>> (ERROR) CPLE_NotSupportedError: "PNG driver doesn't support data type Float32. Only eight bit (Byte) and sixteen bit (UInt16) bands supported".

now - print a warning
with open("img.png", "wb") as f:
f.write(ImageData(numpy.zeros((3, 256, 256), dtype="float32")).render())
>>> (WARNING) InvalidDatatypeWarning: "Invalid type: `float32` for the `PNG` driver. Data will be rescaled using min/max type bounds".


**breaking changes**

* change type of `in_range` option in `ImageData.render` to `Sequence[Tuple[NumType, NumType]]` (https://github.com/cogeotiff/rio-tiler/pull/391)

python
img = ImageData(numpy.zeros((3, 256, 256), dtype="uint16"))

before - Tuple[NumType, NumType]
buff = img.render(in_range=(0, 1000, 0, 1000, 0, 1000))

now - Sequence[Tuple[NumType, NumType]]
buff = img.render(in_range=((0, 1000), (0, 1000), (0, 1000)))

2.0.8

* add warning when dataset doesn't have overviews (https://github.com/cogeotiff/rio-tiler/pull/386)
* add `width`, `height`, `count` and `overviews` infos in `COGReader.info()` (https://github.com/cogeotiff/rio-tiler/pull/387)
* add `driver` in `COGReader.info()` output (https://github.com/cogeotiff/rio-tiler/pull/388)
* add `valid_percent` in `stats` output (https://github.com/cogeotiff/rio-tiler/pull/389)

2.0.7

* use importlib.resources `.files` method to resolve the package directory (https://github.com/cogeotiff/rio-tiler/pull/379)

2.0.6

* add `read()` method in COGReader (https://github.com/cogeotiff/rio-tiler/pull/366)
* add `tile_buffer` option to `COGReader.tile()` method to add pixels around a tile request (https://github.com/cogeotiff/rio-tiler/issues/365)
* use `importlib.resources.path` to find rio-tiler `cmap_data` directory (https://github.com/cogeotiff/rio-tiler/pull/370)
* re-use type definitions (https://github.com/cogeotiff/rio-tiler/issues/337)

2.0.5

* make sure `py.typed` is included in the package (https://github.com/cogeotiff/rio-tiler/pull/363)
* add `jpg` alias in `img_profiles` (https://github.com/cogeotiff/rio-tiler/pull/364)

python
from rio_tiler.profiles import img_profiles

jpeg = img_profiles.get("jpeg")
jpg = img_profiles.get("jpg")
assert jpeg == jpg

Page 13 of 31

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.