Skip to content

Commit

Permalink
Merge pull request #152 from stac-utils/feature/more-precise-statistics
Browse files Browse the repository at this point in the history
update titiler version and use new options for better statistics
  • Loading branch information
vincentsarago authored Jan 17, 2024
2 parents 0c15e36 + d3659b3 commit 48ba85c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion titiler/pgstac/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
}
},
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 48ba85c

Please sign in to comment.