File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Release Notes
2
2
3
+ ## 0.8.2 (2024-01-23)
4
+
5
+ * update rio-tiler version to ` >6.3.0 ` (defined in ` titiler>=0.17 ` )
6
+ * use new ` align_bounds_with_dataset=True ` rio-tiler option in GeoJSON statistics methods for more precise calculation [ backported from 1.2.0]
7
+ * use morecantile ` TileMatrixSet.cellSize ` property instead of deprecated/private TileMatrixSet._ resolution method [ backported from 1.1.0]
8
+
3
9
## 0.8.1 (2023-11-10)
4
10
5
11
* add ` algorithm ` options for ` /statistics [POST] ` endpoints
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ classifiers = [
29
29
dependencies = [
30
30
" titiler.core>=0.15.0,<0.16" ,
31
31
" titiler.mosaic>=0.15.0,<0.16" ,
32
+ " rio-tiler>=6.3.0,<7.0" ,
32
33
" geojson-pydantic~=1.0" ,
33
34
" pydantic>=2.4,<3.0" ,
34
35
" pydantic-settings~=2.0" ,
Original file line number Diff line number Diff line change @@ -450,7 +450,7 @@ def map_viewer(
450
450
"request" : request ,
451
451
"tilejson_endpoint" : tilejson_url ,
452
452
"tms" : tms ,
453
- "resolutions" : [tms . _resolution ( matrix ) for matrix in tms ],
453
+ "resolutions" : [matrix . cellSize for matrix in tms ],
454
454
},
455
455
media_type = "text/html" ,
456
456
)
@@ -1083,6 +1083,7 @@ def geojson_statistics(
1083
1083
dst_crs = dst_crs ,
1084
1084
pixel_selection = pixel_selection ,
1085
1085
threads = MOSAIC_THREADS ,
1086
+ align_bounds_with_dataset = True ,
1086
1087
** image_params ,
1087
1088
** layer_params ,
1088
1089
** dataset_params ,
Original file line number Diff line number Diff line change 1
1
"""TiTiler+PgSTAC FastAPI application."""
2
2
3
3
import logging
4
+ import re
4
5
from contextlib import asynccontextmanager
5
6
from typing import Dict
6
7
@@ -209,6 +210,9 @@ def landing(request: Request):
209
210
}
210
211
211
212
urlpath = request .url .path
213
+ if root_path := request .app .root_path :
214
+ urlpath = re .sub (r"^" + root_path , "" , urlpath )
215
+
212
216
crumbs = []
213
217
baseurl = str (request .base_url ).rstrip ("/" )
214
218
You can’t perform that action at this time.
0 commit comments