You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Goal: adds a `/wms` endpoint to support OGC WMS specification (`GetCapabilities` and `GetMap`)
57
57
58
-
#### stacRenderExtenstion
58
+
#### titiler.extensions.stacRenderExtenstion
59
59
60
60
- Goal: adds `/render` and `/render/{render_id}` endpoints which return the contents of [STAC render extension](https://github.com/stac-extensions/render) and links to tileset.json and WMTS service
61
61
62
+
#### titiler.xarray.DatasetMetadataExtension
63
+
64
+
- Goal: adds `/dataset/`, `/dataset/keys` and `/datasets/dict` endpoints which return metadata about a multidimensional Dataset (not a DataArray)
65
+
62
66
## How To
63
67
64
68
### Use extensions
@@ -85,8 +89,6 @@ tiler = TilerFactory(
85
89
app.include_router(tiler.router, prefix="/cog")
86
90
```
87
91
88
-
See [titiler.application](../application) for a full example.
Copy file name to clipboardExpand all lines: docs/src/advanced/dependencies.md
+205-1Lines changed: 205 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,8 @@ def preview(
38
38
39
39
Using `titiler.core.dependencies.DefaultDependency`, we can use `.as_dict(exclude_none=True/False)` method to `unpack` the object parameters. This can be useful if method or reader do not take the same parameters.
40
40
41
+
## titiler.core
42
+
41
43
#### AssetsParams
42
44
43
45
Define `assets`.
@@ -877,7 +879,7 @@ class StatisticsParams(DefaultDependency):
877
879
878
880
#### TileParams
879
881
880
-
Defile`buffer` and `padding` to apply at tile creation.
882
+
Define`buffer` and `padding` to apply at tile creation.
881
883
882
884
| Name | Type | Required | Default
883
885
| ------ | ----------|----------|--------------
@@ -952,3 +954,205 @@ def post_process(
952
954
953
955
</details>
954
956
957
+
## titiler.xarray
958
+
959
+
960
+
#### XarrayIOParams
961
+
962
+
Define Xarray's `open_args` to `xarray.open_dataset`.
963
+
964
+
| Name | Type | Required | Default
965
+
| ------ | ---------- |----------|--------------
966
+
| **group** | Query (str) | No | None
967
+
| **decode_times** | Query (bool)| No | None
968
+
969
+
<details>
970
+
971
+
```python
972
+
@dataclass
973
+
classXarrayIOParams(DefaultDependency):
974
+
"""Dataset IO Options."""
975
+
976
+
group: Annotated[
977
+
Optional[str],
978
+
Query(
979
+
description="Select a specific zarr group from a zarr hierarchy. Could be associated with a zoom level or dataset."
980
+
),
981
+
] =None
982
+
983
+
decode_times: Annotated[
984
+
Optional[bool],
985
+
Query(
986
+
title="decode_times",
987
+
description="Whether to decode times",
988
+
),
989
+
] =None
990
+
```
991
+
992
+
</details>
993
+
994
+
#### XarrayDsParams
995
+
996
+
Define options to select a **variable** within a Xarray Dataset.
-**path_dependency**: Dependency to use to define the dataset url. Defaults to `titiler.core.dependencies.DatasetPathParams`.
345
345
-**reader_dependency**: Dependency to control options passed to the reader instance init. Defaults to `titiler.xarray.dependencies.XarrayParams`
346
-
-**layer_dependency**: Dependency to define band indexes or expression. Defaults to `titiler.core.dependencies.DefaultDependency`.
346
+
-**layer_dependency**: Dependency to define band indexes or expression. Defaults to `titiler.core.dependencies.BidxParams`.
347
347
-**dataset_dependency**: Dependency to overwrite `nodata` value and change the `Warp` resamplings. Defaults to `titiler.xarray.dependencies.DatasetParams`.
348
348
-**tile_dependency**: Dependency for tile creation options. Defaults to `titiler.core.dependencies.DefaultDependency`.
349
349
-**stats_dependency**: Dependency to define options for *rio-tiler*'s statistics method used in `/statistics` endpoints. Defaults to `titiler.core.dependencies.StatisticsParams`.
Copy file name to clipboardExpand all lines: docs/src/endpoints/cog.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ The `/cog` routes are based on `titiler.core.factory.TilerFactory` but with `cog
40
40
-**x** (int): TMS tile's column.
41
41
-**y** (int): TMS tile's row.
42
42
-**scale** (int): Tile size scale, default is set to 1 (256x256). **Optional**
43
-
-**format** (str): Output [image format](../output_format.md), default is set to None and will be either JPEG or PNG depending on masked value. **Optional**
43
+
-**format** (str): Output [image format](../user_guide/output_format.md), default is set to None and will be either JPEG or PNG depending on masked value. **Optional**
-**format** (str): Output [image format](../output_format.md), default is set to None and will be either JPEG or PNG depending on masked value. **Optional**
75
+
-**format** (str): Output [image format](../user_guide/output_format.md), default is set to None and will be either JPEG or PNG depending on masked value. **Optional**
-**height** (int): Force output image height. **Optional**
152
152
-**width** (int): Force output image width. **Optional**
153
-
-**format** (str): Output [image format](../output_format.md), default is set to None and will be either JPEG or PNG depending on masked value. **Optional**
153
+
-**format** (str): Output [image format](../user_guide/output_format.md), default is set to None and will be either JPEG or PNG depending on masked value. **Optional**
-**tile_format** (str): Output [image format](../output_format.md), default is set to None and will be either JPEG or PNG depending on masked value.
216
+
-**tile_format** (str): Output [image format](../user_guide/output_format.md), default is set to None and will be either JPEG or PNG depending on masked value.
217
217
-**tile_scale** (int): Tile size scale, default is set to 1 (256x256).
-**tile_format** (str): Output [image format](../output_format.md), default is set to None and will be either JPEG or PNG depending on masked value.
252
+
-**tile_format** (str): Output [image format](../user_guide/output_format.md), default is set to None and will be either JPEG or PNG depending on masked value.
253
253
-**tile_scale** (int): Tile size scale, default is set to 1 (256x256).
0 commit comments