Skip to content

Commit

Permalink
fix documentation issue about asset_bidx
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Mar 1, 2023
1 parent 418bb93 commit 65bba2f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* switch to `ruff` for python linting
* update pre-commit configuration
* documentation fixes 🙏 (authors @jthetzel, @neilsh)
* fix documentation about `asset_bidx`

### titiler.core

Expand Down
20 changes: 10 additions & 10 deletions docs/src/endpoints/stac.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The `/stac` routes are based on `titiler.core.factory.MultiBaseTilerFactory` but
- **assets** (array[str]): asset names.
- **expression** (str): rio-tiler's math expression with asset names (e.g `Asset1_b1/Asset2_b1`).
- **asset_as_band** (bool): tell rio-tiler that each asset is a 1 band dataset, so expression `Asset1/Asset2` can be passed.
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1;2;3`).
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1,2,3`).
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
Expand Down Expand Up @@ -80,7 +80,7 @@ Example:
- **assets** (array[str]): asset names.
- **expression** (str): rio-tiler's math expression with asset names (e.g `Asset1_b1/Asset2_b1`).
- **asset_as_band** (bool): tell rio-tiler that each asset is a 1 band dataset, so expression `Asset1/Asset2` can be passed.
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1;2;3`).
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1,2,3`).
- **max_size** (int): Max image size, default is 1024.
- **height** (int): Force output image height.
- **width** (int): Force output image width.
Expand Down Expand Up @@ -123,7 +123,7 @@ Example:
- **assets** (array[str]): asset names.
- **expression** (str): rio-tiler's math expression with asset names (e.g `Asset1_b1/Asset2_b1`).
- **asset_as_band** (bool): tell rio-tiler that each asset is a 1 band dataset, so expression `Asset1/Asset2` can be passed.
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1;2;3`).
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1,2,3`).
- **max_size** (int): Max image size, default is 1024.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
Expand Down Expand Up @@ -161,7 +161,7 @@ Example:
- **assets** (array[str]): asset names.
- **expression** (str): rio-tiler's math expression with asset names (e.g `Asset1_b1/Asset2_b1`).
- **asset_as_band** (bool): tell rio-tiler that each asset is a 1 band dataset, so expression `Asset1/Asset2` can be passed.
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1;2;3`).
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1,2,3`).
- **max_size** (int): Max image size, default is 1024.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
Expand Down Expand Up @@ -197,7 +197,7 @@ Example:
- **assets** (array[str]): asset names.
- **expression** (str): rio-tiler's math expression with asset names (e.g `Asset1_b1/Asset2_b1`).
- **asset_as_band** (bool): tell rio-tiler that each asset is a 1 band dataset, so expression `Asset1/Asset2` can be passed.
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1;2;3`).
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1,2,3`).
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
Expand All @@ -221,7 +221,7 @@ Example:
- **assets** (array[str]): asset names.
- **expression** (str): rio-tiler's math expression with asset names (e.g `Asset1_b1/Asset2_b1`).
- **asset_as_band** (bool): tell rio-tiler that each asset is a 1 band dataset, so expression `Asset1/Asset2` can be passed.
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1;2;3`).
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1,2,3`).
- **tile_format** (str): Output image format, default is set to None and will be either JPEG or PNG depending on masked value.
- **tile_scale** (int): Tile size scale, default is set to 1 (256x256).
- **minzoom** (int): Overwrite default minzoom.
Expand Down Expand Up @@ -259,7 +259,7 @@ Example:
- **assets** (array[str]): asset names.
- **expression** (str): rio-tiler's math expression with asset names (e.g `Asset1_b1/Asset2_b1`).
- **asset_as_band** (bool): tell rio-tiler that each asset is a 1 band dataset, so expression `Asset1/Asset2` can be passed.
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1;2;3`).
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1,2,3`).
- **tile_format** (str): Output image format, default is set to None and will be either JPEG or PNG depending on masked value.
- **tile_scale** (int): Tile size scale, default is set to 1 (256x256).
- **minzoom** (int): Overwrite default minzoom.
Expand Down Expand Up @@ -334,7 +334,7 @@ Example:
- QueryParams:
- **url** (str): STAC Item URL. **Required**
- **assets** (array[str]): asset names. Default to all available assets.
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1;2;3`).
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1,2,3`).
- **asset_expression** (array[str]): Per asset band math expression (e.g `Asset1|b1\*b2`).
- **max_size** (int): Max image size from which to calculate statistics, default is 1024.
- **height** (int): Force image height from which to calculate statistics.
Expand All @@ -360,7 +360,7 @@ Example:
- **assets** (array[str]): asset names. Default to all available assets.
- **expression** (str): rio-tiler's math expression with asset names (e.g `Asset1_b1/Asset2_b1`).
- **asset_as_band** (bool): tell rio-tiler that each asset is a 1 band dataset, so expression `Asset1/Asset2` can be passed.
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1;2;3`).
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1,2,3`).
- **max_size** (int): Max image size from which to calculate statistics, default is 1024.
- **height** (int): Force image height from which to calculate statistics.
- **width** (int): Force image width from which to calculate statistics.
Expand Down Expand Up @@ -388,7 +388,7 @@ Example:
- **assets** (array[str]): asset names. Default to all available assets.
- **expression** (str): rio-tiler's math expression with asset names (e.g `Asset1_b1/Asset2_b1`).
- **asset_as_band** (bool): tell rio-tiler that each asset is a 1 band dataset, so expression `Asset1/Asset2` can be passed.
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1;2;3`).
- **asset_bidx** (array[str]): Per asset band math expression (e.g `Asset1|1,2,3`).
- **max_size** (int): Max image size from which to calculate statistics, default is 1024.
- **height** (int): Force image height from which to calculate statistics.
- **width** (int): Force image width from which to calculate statistics.
Expand Down
6 changes: 3 additions & 3 deletions src/titiler/core/titiler/core/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,16 @@ class AssetsBidxExprParams(DefaultDependency):
asset_indexes: Optional[Sequence[str]] = Query(
None,
title="Per asset band indexes",
description="Per asset band indexes",
description="Per asset band indexes (coma separated indexes)",
alias="asset_bidx",
examples={
"one-asset": {
"description": "Return indexes 1,2,3 of asset `data`.",
"value": ["data|1;2;3"],
"value": ["data|1,2,3"],
},
"multi-assets": {
"description": "Return indexes 1,2,3 of asset `data` and indexes 1 of asset `cog`",
"value": ["data|1;2;3", "cog|1"],
"value": ["data|1,2,3", "cog|1"],
},
},
)
Expand Down

0 comments on commit 65bba2f

Please sign in to comment.