Skip to content

Commit

Permalink
update rio-tiler dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Oct 22, 2024
1 parent 33eb757 commit 44387ed
Show file tree
Hide file tree
Showing 22 changed files with 270 additions and 464 deletions.
27 changes: 20 additions & 7 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Misc

* Removed default `WebMercatorQuad` tile matrix set in `/tiles`, `/tilesjson.json`, `/map` and `/WMTSCapabilities.xml` endpoints **breaking change**
* Remove default `WebMercatorQuad` tile matrix set in `/tiles`, `/tilesjson.json`, `/map` and `/WMTSCapabilities.xml` endpoints **breaking change**

```
# Before
Expand All @@ -23,9 +23,14 @@
* Use `@attrs.define` instead of dataclass for factories **breaking change**
* Use `@attrs.define` instead of dataclass for factory extensions **breaking change**


### titiler.core

* Update `rio-tiler` dependency to `>=7.0,<8.0`

* Update `geojson-pydantic` dependency to `>=1.1.2,<2.0` which better handle antimeridian crossing dataset

* handle `antimeridian` crossing bounds in `/info.geojson` endpoints (returning MultiPolygon instead of Polygon)

* Improve XSS security for HTML templates (author @jcary741, https://github.com/developmentseed/titiler/pull/953)

* Remove all default values to the dependencies **breaking change**
Expand Down Expand Up @@ -57,26 +62,34 @@
>> {'value': 1}
```

* fix Hillshade algorithm (bad `azimuth` angle)
* Fix Hillshade algorithm (bad `azimuth` angle)

* set default `azimuth` and `altitude` angles to 45º for the Hillshade algorithm **breaking change**
* Set default `azimuth` and `altitude` angles to 45º for the Hillshade algorithm **breaking change**

* Use `.as_dict()` method when passing option to rio-tiler Reader's methods to avoid parameter conflicts when using custom Readers.

* Renamed `BaseTilerFactory` to `BaseFactory` **breaking change**
* Rename `BaseTilerFactory` to `BaseFactory` **breaking change**

* Removed useless attribute in `BaseFactory` (and moved them to `TilerFactory`) **breaking change**
* Remove useless attribute in `BaseFactory` (and moved them to `TilerFactory`) **breaking change**

* Remove `/bounds` endpoints in factories **breaking change**

### titiler.mosaic

* Renamed `reader` attribute to `backend` in `MosaicTilerFactory` **breaking change**
* Rename `reader` attribute to `backend` in `MosaicTilerFactory` **breaking change**

* Remove `/bounds` endpoints in factories **breaking change**

* Update `cogeo-mosaic` dependency to `>=8.0,<9.0`

### titiler.extensions

* Encode URL for cog_viewer and stac_viewer (author @guillemc23, https://github.com/developmentseed/titiler/pull/961)

* Add links for render parameters and `/map` link to **viewer** dashboard (author @hrodmn, https://github.com/developmentseed/titiler/pull/987)

* Update viewers to use `/info.geojson` endpoint instead of `/info`

## 0.18.10 (2024-10-17)

### titiler.application
Expand Down
4 changes: 0 additions & 4 deletions docs/src/advanced/endpoints_factories.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ app.include_router(cog.router)

| Method | URL | Output | Description
| ------ | --------------------------------------------------------------- |-------------------------------------------- |--------------
| `GET` | `/bounds` | JSON ([Bounds][bounds_model]) | return dataset's bounds
| `GET` | `/info` | JSON ([Info][info_model]) | return dataset's basic info
| `GET` | `/info.geojson` | GeoJSON ([InfoGeoJSON][info_geojson_model]) | return dataset's basic info as a GeoJSON feature
| `GET` | `/statistics` | JSON ([Statistics][stats_model]) | return dataset's statistics
Expand Down Expand Up @@ -127,7 +126,6 @@ app.include_router(stac.router)

| Method | URL | Output | Description
| ------ | --------------------------------------------------------------- |------------------------------------------------- |--------------
| `GET` | `/bounds` | JSON ([Bounds][bounds_model]) | return dataset's bounds
| `GET` | `/assets` | JSON | return the list of available assets
| `GET` | `/info` | JSON ([Info][multiinfo_model]) | return assets basic info
| `GET` | `/info.geojson` | GeoJSON ([InfoGeoJSON][multiinfo_geojson_model]) | return assets basic info as a GeoJSON feature
Expand Down Expand Up @@ -183,7 +181,6 @@ app.include_router(landsat.router)

| Method | URL | Output | Description
| ------ | --------------------------------------------------------------- |--------------------------------------------- |--------------
| `GET` | `/bounds` | JSON ([Bounds][bounds_model]) | return dataset's bounds
| `GET` | `/bands` | JSON | return the list of available bands
| `GET` | `/info` | JSON ([Info][info_model]) | return basic info for a dataset
| `GET` | `/info.geojson` | GeoJSON ([InfoGeoJSON][info_geojson_model]) | return basic info for a dataset as a GeoJSON feature
Expand Down Expand Up @@ -221,7 +218,6 @@ Endpoints factory for mosaics, built on top of [MosaicJSON](https://github.com/d
| Method | URL | Output | Description
| ------ | --------------------------------------------------------------- |--------------------------------------------------- |--------------
| `GET` | `/` | JSON [MosaicJSON][mosaic_model] | return a MosaicJSON document
| `GET` | `/bounds` | JSON ([Bounds][bounds_model]) | return mosaic's bounds
| `GET` | `/info` | JSON ([Info][mosaic_info_model]) | return mosaic's basic info
| `GET` | `/info.geojson` | GeoJSON ([InfoGeoJSON][mosaic_geojson_info_model]) | return mosaic's basic info as a GeoJSON feature
| `GET` | `/tiles/{tileMatrixSetId}/{z}/{x}/{y}[@{scale}x][.{format}]` | image/bin | create a web map tile image from a MosaicJSON
Expand Down
14 changes: 4 additions & 10 deletions docs/src/endpoints/cog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ The `/cog` routes are based on `titiler.core.factory.TilerFactory` but with `cog

| Method | URL | Output | Description
| ------ | ------------------------------------------------------------------- |---------- |--------------
| `GET` | `/cog/bounds` | JSON | return dataset's bounds
| `GET` | `/cog/info` | JSON | return dataset's basic info
| `GET` | `/cog/info.geojson` | GeoJSON | return dataset's basic info as a GeoJSON feature
| `GET` | `/cog/statistics` | JSON | return dataset's statistics
Expand Down Expand Up @@ -274,32 +273,27 @@ Example:
- `https://myendpoint/cog/WorldCRS84Quad/map?url=https://somewhere.com/mycog.tif&tile_scale=2&bidx=1,2,3`


### Bounds
### Info

`:endpoint:/cog/bounds` general image bounds
`:endpoint:/cog/info` general raster info

- QueryParams:
- **url** (str): Cloud Optimized GeoTIFF URL. **Required**

Example:

- `https://myendpoint/cog/bounds?url=https://somewhere.com/mycog.tif`

### Info

`:endpoint:/cog/info` general raster info
- `https://myendpoint/cog/info?url=https://somewhere.com/mycog.tif`

`:endpoint:/cog/info.geojson` general raster info as a GeoJSON feature

- QueryParams:
- **url** (str): Cloud Optimized GeoTIFF URL. **Required**
- **crs** (str): Geographic Coordinate Reference System. Default to `epsg:4326`.

Example:

- `https://myendpoint/cog/info?url=https://somewhere.com/mycog.tif`
- `https://myendpoint/cog/info.geojson?url=https://somewhere.com/mycog.tif`


### Statistics

Advanced raster statistics
Expand Down
1 change: 0 additions & 1 deletion docs/src/endpoints/mosaic.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Read Mosaic Info/Metadata and create Web map Tiles from a multiple COG. The `mos
| Method | URL | Output | Description
| ------ | -------------------------------------------------------------------------- |---------- |--------------
| `GET` | `/mosaicjson/` | JSON | return a MosaicJSON document
| `GET` | `/mosaicjson/bounds` | JSON | return mosaic's bounds
| `GET` | `/mosaicjson/info` | JSON | return mosaic's basic info
| `GET` | `/mosaicjson/info.geojson` | GeoJSON | return mosaic's basic info as a GeoJSON feature
| `GET` | `/mosaicjson/tiles/{tileMatrixSetId}/{z}/{x}/{y}[@{scale}x][.{format}]` | image/bin | create a web map tile image from mosaic assets
Expand Down
14 changes: 1 addition & 13 deletions docs/src/endpoints/stac.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ The `/stac` routes are based on `titiler.core.factory.MultiBaseTilerFactory` but
| Method | URL | Output | Description
| ------ | -------------------------------------------------------------------- |---------- |--------------
| `GET` | `/stac/assets` | JSON | return available assets within the STAC item
| `GET` | `/stac/bounds` | JSON | return STAC item bounds
| `GET` | `/stac/info` | JSON | return asset's basic info
| `GET` | `/stac/info.geojson` | GeoJSON | return asset's basic info as a GeoJSON feature
| `GET` | `/stac/asset_statistics` | JSON | return per asset statistics
Expand Down Expand Up @@ -301,18 +300,6 @@ Example:
- `https://myendpoint/stac/WorldCRS84Quad/tilejson.json?url=https://somewhere.com/item.json&tile_scale=2&expression=B01/B02`


### Bounds

`:endpoint:/stac/bounds` - Return the bounds of the STAC item.

- QueryParams:
- **url** (str): STAC Item URL. **Required**

Example:

- `https://myendpoint/stac/bounds?url=https://somewhere.com/item.json`


### Info

`:endpoint:/stac/info` - Return basic info on STAC item's COG.
Expand All @@ -330,6 +317,7 @@ Example:
- QueryParams:
- **url** (str): STAC Item URL. **Required**
- **assets** (array[str]): asset names. Default to all available assets.
- **crs** (str): Geographic Coordinate Reference System. Default to `epsg:4326`.

Example:

Expand Down
Loading

0 comments on commit 44387ed

Please sign in to comment.