diff --git a/CHANGES.md b/CHANGES.md index cfbcdd8..0c5913d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,10 @@ # Release Notes +## 1.2.0 (2024-01-17) + +* update titiler requirement to `>=0.17.0,<0.18` +* use new `align_bounds_with_dataset=True` rio-tiler option in GeoJSON statistics methods for more precise calculation + ## 1.1.0 (2024-01-10) * update titiler requirement to `>=0.16.0,<0.17` diff --git a/pyproject.toml b/pyproject.toml index db4f90b..c5c1a5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,8 +27,8 @@ classifiers = [ "Topic :: Scientific/Engineering :: GIS", ] dependencies = [ - "titiler.core>=0.16.0,<0.17", - "titiler.mosaic>=0.16.0,<0.17", + "titiler.core>=0.17.0,<0.18", + "titiler.mosaic>=0.17.0,<0.18", "geojson-pydantic~=1.0", "pydantic>=2.4,<3.0", "pydantic-settings~=2.0", diff --git a/titiler/pgstac/factory.py b/titiler/pgstac/factory.py index c1f9e9f..239a257 100644 --- a/titiler/pgstac/factory.py +++ b/titiler/pgstac/factory.py @@ -677,7 +677,7 @@ def _statistics_routes(self): response_class=GeoJSONResponse, responses={ 200: { - "content": {"application/json": {}}, + "content": {"application/geo+json": {}}, "description": "Return statistics for geojson features.", } }, @@ -722,6 +722,7 @@ def geojson_statistics( dst_crs=dst_crs, pixel_selection=pixel_selection, threads=MOSAIC_THREADS, + align_bounds_with_dataset=True, **image_params, **layer_params, **dataset_params,