Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Nov 2, 2023
1 parent 03a1a35 commit 75c94de
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 19 deletions.
26 changes: 17 additions & 9 deletions docs/src/endpoints/cog.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ The `/cog` routes are based on `titiler.core.factory.TilerFactory` but with `cog
- **expression** (str): rio-tiler's band math expression (e.g `expression=b1/b2`).
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.
- **rescale** (array[str]): Comma (',') delimited Min,Max range (e.g `rescale=0,1000`, `rescale=0,1000&rescale=0,3000&rescale=0,2000`).
- **color_formula** (str): rio-color formula.
- **colormap** (str): JSON encoded custom Colormap.
Expand Down Expand Up @@ -79,7 +80,8 @@ Example:
- **width** (int): Force output image width.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.
- **rescale** (array[str]): Comma (',') delimited Min,Max range (e.g `rescale=0,1000`, `rescale=0,1000&rescale=0,3000&rescale=0,2000`).
- **color_formula** (str): rio-color formula.
- **colormap** (str): JSON encoded custom Colormap.
Expand Down Expand Up @@ -118,7 +120,8 @@ Example:
- **max_size** (int): Max image size.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.
- **rescale** (array[str]): Comma (',') delimited Min,Max range (e.g `rescale=0,1000`, `rescale=0,1000&rescale=0,3000&rescale=0,2000`).
- **color_formula** (str): rio-color formula.
- **colormap** (str): JSON encoded custom Colormap.
Expand Down Expand Up @@ -155,7 +158,8 @@ Example:
- **max_size** (int): Max image size.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.
- **rescale** (array[str]): Comma (',') delimited Min,Max range (e.g `rescale=0,1000`, `rescale=0,1000&rescale=0,3000&rescale=0,2000`).
- **color_formula** (str): rio-color formula.
- **colormap** (str): JSON encoded custom Colormap.
Expand Down Expand Up @@ -189,7 +193,8 @@ Note: if `height` and `width` are provided `max_size` will be ignored.
- **coord_crs** (str): Coordinate Reference System of the input coordinates. Default to `epsg:4326`.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.

Example:

Expand All @@ -213,7 +218,8 @@ Example:
- **expression** (str): rio-tiler's band math expression (e.g `expression=b1/b2`).
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.
- **rescale** (array[str]): Comma (',') delimited Min,Max range (e.g `rescale=0,1000`, `rescale=0,1000&rescale=0,3000&rescale=0,2000`).
- **color_formula** (str): rio-color formula.
- **colormap** (str): JSON encoded custom Colormap.
Expand Down Expand Up @@ -247,7 +253,8 @@ Example:
- **expression** (str): rio-tiler's band math expression (e.g `expression=b1/b2`).
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.
- **rescale** (array[str]): Comma (',') delimited Min,Max range (e.g `rescale=0,1000`, `rescale=0,1000&rescale=0,3000&rescale=0,2000`).
- **color_formula** (str): rio-color formula.
- **colormap** (str): JSON encoded custom Colormap.
Expand Down Expand Up @@ -305,7 +312,7 @@ Advanced raster statistics
- **width** (int): Force image width from which to calculate statistics.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **categorical** (bool): Return statistics for categorical dataset, default is false.
- **c** (array[float]): Pixels values for categories.
- **p** (array[int]): Percentile values.
Expand All @@ -332,7 +339,8 @@ Example:
- **width** (int): Force image width from which to calculate statistics.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.
- **categorical** (bool): Return statistics for categorical dataset, default is false.
- **c** (array[float]): Pixels values for categories.
- **p** (array[int]): Percentile values.
Expand Down
27 changes: 17 additions & 10 deletions docs/src/endpoints/stac.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ The `/stac` routes are based on `titiler.core.factory.MultiBaseTilerFactory` but
- **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`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.
- **rescale** (array[str]): Comma (',') delimited Min,Max range (e.g `rescale=0,1000`, `rescale=0,1000&rescale=0,3000&rescale=0,2000`).
- **color_formula** (str): rio-color formula.
- **colormap** (str): JSON encoded custom Colormap.
Expand Down Expand Up @@ -88,7 +89,8 @@ Example:
- **dst_crs** (str): Output Coordinate Reference System. Default to dataset's CRS.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.
- **rescale** (array[str]): Comma (',') delimited Min,Max range (e.g `rescale=0,1000`, `rescale=0,1000&rescale=0,3000&rescale=0,2000`).
- **color_formula** (str): rio-color formula.
- **colormap** (str): JSON encoded custom Colormap.
Expand Down Expand Up @@ -131,7 +133,8 @@ Example:
- **max_size** (int): Max image size.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.
- **rescale** (array[str]): Comma (',') delimited Min,Max range (e.g `rescale=0,1000`, `rescale=0,1000&rescale=0,3000&rescale=0,2000`).
- **color_formula** (str): rio-color formula.
- **colormap** (str): JSON encoded custom Colormap.
Expand Down Expand Up @@ -171,7 +174,8 @@ Example:
- **max_size** (int): Max image size.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.
- **rescale** (array[str]): Comma (',') delimited Min,Max range (e.g `rescale=0,1000`, `rescale=0,1000&rescale=0,3000&rescale=0,2000`).
- **color_formula** (str): rio-color formula.
- **colormap** (str): JSON encoded custom Colormap.
Expand Down Expand Up @@ -207,7 +211,7 @@ Example:
- **coord_crs** (str): Coordinate Reference System of the input coordinates. Default to `epsg:4326`.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.

!!! important
**assets** OR **expression** is required
Expand Down Expand Up @@ -235,7 +239,8 @@ Example:
- **maxzoom** (int): Overwrite default maxzoom.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.
- **rescale** (array[str]): Comma (',') delimited Min,Max range (e.g `rescale=0,1000`, `rescale=0,1000&rescale=0,3000&rescale=0,2000`).
- **color_formula** (str): rio-color formula.
- **colormap** (str): JSON encoded custom Colormap.
Expand Down Expand Up @@ -274,7 +279,8 @@ Example:
- **maxzoom** (int): Overwrite default maxzoom.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.
- **rescale** (array[str]): Comma (',') delimited Min,Max range (e.g `rescale=0,1000`, `rescale=0,1000&rescale=0,3000&rescale=0,2000`).
- **color_formula** (str): rio-color formula.
- **colormap** (str): JSON encoded custom Colormap.
Expand Down Expand Up @@ -350,7 +356,7 @@ Example:
- **width** (int): Force image width from which to calculate statistics.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **categorical** (bool): Return statistics for categorical dataset, default is false.
- **c** (array[float]): Pixels values for categories.
- **p** (array[int]): Percentile values.
Expand All @@ -375,7 +381,7 @@ Example:
- **width** (int): Force image width from which to calculate statistics.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **categorical** (bool): Return statistics for categorical dataset, default is false.
- **c** (array[float]): Pixels values for categories.
- **p** (array[int]): Percentile values.
Expand Down Expand Up @@ -405,7 +411,8 @@ Example:
- **width** (int): Force image width from which to calculate statistics.
- **nodata** (str, int, float): Overwrite internal Nodata value.
- **unscale** (bool): Apply dataset internal Scale/Offset.
- **resampling** (str): rasterio resampling method. Default is `nearest`.
- **resampling** (str): RasterIO resampling algorithm. Defaults to `nearest`.
- **reproject** (str): WarpKernel resampling algorithm (only used when doing re-projection). Defaults to `nearest`.
- **categorical** (bool): Return statistics for categorical dataset, default is false.
- **c** (array[float]): Pixels values for categories.
- **p** (array[int]): Percentile values.
Expand Down

0 comments on commit 75c94de

Please sign in to comment.