Release Notes¶
0.8.0 (2023-10-06)¶
- update titiler requirement to
>=0.14.0,<0.15 - remove
max_sizedefault for mosaic's/statistics [POST]endpoint breaking change - add
/bboxand/feature [POST]optional endpoints - add
img_part_dependencyattribute inMosaicTilerFactory(defaults totitiler.code.dependencies.PartFeatureParams)
0.7.0 (2023-09-28)¶
- update requirements to switch to pydantic~=2.0
- pydantic>=2.4,<3.0
- pydantic-settings~=2.0
- geojson-pydantic~=1.0
-
cogeo-mosaic>=7.0,<8.0
-
update titiler requirement to
>=0.14.0,<0.15-
replace
-by_in query parameters- coord-crs -> coord_crs
- dst-crs -> dst_crs
-
0.6.0 (2023-09-18)¶
- add
tilejsonURL links forlayersdefined in mosaic's metadata in/mosaic/registerand/mosaic/{mosaic_id}/inforesponse - support multiple
layersin/mosaic/{mosaic_id}/WMTSCapabilities.xmlendpoint created from mosaic's metadata
breaking change
-
In
/mosaic/WMTSCapabilities.xmlwe removed the query-parameters related to thetileendpoint (which are forwarded) so?assets=is no more required. The endpoint will still raise an error if there are nolayersin the mosaic metadata and no required tile's parameters are passed.# before response = httpx.get("/mosaic/{mosaic_id}/WMTSCapabilities.xml") assert response.status_code == 400 response = httpx.get("/mosaic/{mosaic_id}/WMTSCapabilities.xml?assets=cog") assert response.status_code == 200 # now # If the mosaic has `defaults` layers set in the metadata # we will construct a WMTS document with multiple layers, so no need for the user to pass any `assets=` response = httpx.get("/mosaic/{mosaic_id}/WMTSCapabilities.xml") assert response.status_code == 200 with rasterio.open(io.BytesIO(response.content)) as src: assert src.profile["driver"] == "WMTS" assert len(src.subdatasets) == 2 # If the user pass any valid `tile` parameters, an additional layer will be added to the one from the metadata response = httpx.get("/mosaic/{mosaic_id}/WMTSCapabilities.xml?assets=cog") assert response.status_code == 200 with rasterio.open(io.BytesIO(response.content)) as src: assert src.profile["driver"] == "WMTS" assert len(src.subdatasets) == 3
0.5.1 (2023-08-03)¶
- add
python-dotenvrequirement
0.5.0 (2023-07-20)¶
- update
titilerrequirement to>=0.12.0,<0.13 - use
AnnotatedType for Query/Path parameters - re-order endpoints in
MosaicTilerFactoryto avoid conflicts betweentilesandassetsendpoints - remove
stac-pydanticdependency - add optional
root_pathsetting to specify a url path prefix to use when running the app behind a reverse proxy - add landing page
/ - use
lifespanoption instead of deprecated@app.on_eventmethod to initiate/close DB connection
breaking changes
- remove deprecated
/{searchid}/{z}/{x}/{y}/assetsendpoints - use /api and /api.html for documentation (instead of /openapi.json and /docs)
- replace Enum's with
Literaltypes - replace variable
TileMatrixSetIdbytileMatrixSetId - add
pixel_selection_dependencyattribute to theMosaicTilerFactory
0.4.1 (2023-06-21)¶
- update
titilerrequirement to>=0.11.7 - fix
/mapendpoint template name - rename
add_map_viewertoadd_vieweroption inMosaicTilerFactoryfor consistency withtitiler'soptions
0.4.0 (2023-05-22)¶
- remove deprecated
/tiles/{searchid}/...endpoints (replaced with/{searchid}/tiles/...) - depreciate
/{searchid}/{z}/{x}/{y}/assetsendpoints and add/{searchid}/tiles/{z}/{x}/{y}/assets - update minimum titiler requirement to
>=0.11.6 - remove timing headers
- add
strict_zoomoption (controled withMOSAIC_STRICT_ZOOMenvironment variable) to raise (or not) error when fetching tile outside mosaic min/max zoom range
0.3.3 (2023-04-27)¶
- update python packaging/build system to
pdm-pep517 - use
Rufffor lint - add retry mechanism on Database connection issues for
PGSTACBackend.get_assets()andget_stac_itemmethods (back ported from 0.2.4)
0.3.2 (2023-03-14)¶
- update titiler requirement to
0.10.2 - fix maximum version of FastAPI to 0.92 (to avoid breaking change of starlette >0.25)
0.3.1 (2022-12-16)¶
- update Type information for
dependencies.get_stac_item(back ported from 0.2.2)
0.3.0 (2022-12-16)¶
breaking changes
-
Use
/collections/{collection_id}/items/{item_id}prefix for Item endpoint.# Before {endpoint}/stac/info?collection=collection1&item=item1 # Now {endpoint}/collections/collection1/items/item1/info -
Change tile url path parameter order from
/tiles/{searchid}/{TileMatrixSetId}/{z}/{x}/{y}to/{searchid}/tiles/{TileMatrixSetId}/{z}/{x}/{y}# Before {endpoint}/mosaic/tiles/20200307aC0853900w361030/0/0/0 # Now {endpoint}/mosaic/20200307aC0853900w361030/tiles/0/0/0
0.2.4 (2023-04-27)¶
- add retry mechanism on Database connection issues for
PGSTACBackend.get_assets()andget_stac_itemmethods
0.2.3 (2023-03-14)¶
- fix maximum version of FastAPI to 0.92 (to avoid breaking change of starlette >0.25)
0.2.2 (2022-12-16)¶
- update Type information for
dependencies.get_stac_item
0.2.1 (2022-12-15)¶
- update titiler requirement to
>=0.10.1,<0.11and fix/mapendpoint (to accept multiple TMS)
0.2.0 (2022-12-13)¶
- add python 3.10 and 3.11 support
- update to rio-tiler 4.1
- add
/{searchid}/mapendpoint to theMosaicTilerFactory(added whenadd_map_vieweris set toTrue) - add
/{searchid}/WMTSCapabilities.xmlOGC WMTS endpoint to theMosaicTilerFactory - add
/listto theMosaicTilerFactoryto list available mosaics (added whenadd_mosaic_listis set toTrue)
breaking changes
- remove python 3.7 support
- update titiler requirement to
>=0.10.0 - replace
connection_stringbydatabase_urlinsettings.PostgresSettings. We can now directly setDATABASE_URLenvironment variable.
Frontend changes¶
- remove
asset_expression(Mosaic and Item) - histogram band names are prefixed with
b(e.gb1) (Mosaic and Item) (ref: github.com/cogeotiff/rio-tiler/blob/main/docs/src/v4_migration.md#band-names) - expression for STAC have to be in form of
{asset}_b{band_name}(e.gred_b1/green_b1) (Mosaic and Item) (ref: github.com/cogeotiff/rio-tiler/blob/main/docs/src/v4_migration.md#multibasereader-expressions) - added
asset_as_bandoption to force expression to be in form of{asset}(e.gred/green) (Mosaic and Item) - expression's band should now be delimited with
;(previously,was accepted) (Mosaic and Item) - point output model to include band_names (Item)
- added
algorithmoptions
0.1.0 (2022-06-27)¶
- update
titiler.coreandtitiler.mosaicrequirement to0.7 - add
MosaicTilerFactory._tilejson_routesmethod to registerTileJSONroutes - raise
cogeo_mosaic.errors.MosaicNotFoundErrorwhen SearchId is not found in pgstac.searches table
breaking changes
- move version definition in
titiler.pgstac.__version__ - remove unused
fetch_optionsintitiler.pgstac.reader.PgSTACReader
0.1.0a10 (2022-05-16) Pre-Release¶
- update
titilerversion and addreader_dependencyandbackend_dependencyin endpoint factory.
0.1.0.a9 (2022-05-05) Pre-Release¶
- remove LRU cache on all settings classes to enable support for manually providing settings via keyword arguments and to minimize lines of code (author @alukach, stac-utils/titiler-pgstac!54)
0.1.0.a8 (2022-05-02) Pre-Release¶
- Insert mosaic metadata
min/max zoomandboundsin tilejson (stac-utils/titiler-pgstac!51) - allow users the ability to optionally provide
PostgresSettingstoconnect_to_db()function in the event that they want to customize how their DB credentials are populated (author @alukach, stac-utils/titiler-pgstac!53)
0.1.0.a7 (2022-04-05) Pre-Release¶
- add
feature()method toPGSTACBackendmosaic backend - add
/statisticsendpoint to return statistics given a GeoJSON feature or featureCollection - add
collectionin allowed returned fields - switch to
pgstac.searchto get the STAC Item intitiler.pgstac.dependencies.get_stac_item(stac-utils/titiler-pgstac!50)
0.1.0.a6 (2022-03-14) Pre-Release¶
- move dependencies to
titiler.pgstac.dependencies - add
/stacendpoints to work with PgSTAC items
breaking changes
- add
/mosaicprefix to the PgSTAC mosaic endpoints
0.1.0.a5 (2022-03-03) Pre-Release¶
- Add
search_dependencyto allow customization of the PgSTAC Search query (Author @drnextgis, stac-utils/titiler-pgstac!41) - Add PgSTAC Search entries model (stac-utils/titiler-pgstac!43)
- Add
Metadataspecification (stac-utils/titiler-pgstac!38)
breaking changes
- update
titiler.coreandtitiler.mosaicrequirement to>=0.5 - When registering a
searchto PgSTAC with the/registerendpoint, a default metadata{"type": "mosaic"}will be set. - Renamed
titiler.pgstac.modelstotitiler.pgstac.model - Renamed
titiler.pgstac.models.SearchQuerytotitiler.pgstac.model.PgSTACSearch(and removedmetadata) -
output response for
/registerendpoint:// before { "searchid": "...", "metadata": "http://endpoint/.../info", "tiles": "http://endpoint/.../tilejson.json", } // now { "searchid": "...", "links": [ { "rel": "info", "href": "http://endpoint/.../info", "type": "application/json", }, { "rel": "tilejson", "href": "http://endpoint/.../tilejson.json", "type": "application/json", } ] } -
output response for
/infoendpoint:// before { "hash": "...", "search": {}, "_where": "...", ... } // now { "search": { "hash": "...", "search": {}, "_where": "...", ... }, "links": [ { "rel": "self", "href": "http://endpoint/.../info", "type": "application/json", }, { "rel": "tilejson", "href": "http://endpoint/.../tilejson.json", "type": "application/json", } ] }
0.1.0.a4 (2022-02-07) Pre-Release¶
- add tile
bufferoption to match rio-tiler tile options (stac-utils/titiler-pgstac!31)
0.1.0.a3 (2021-12-15) Pre-Release¶
- Forward TMS to the STAC Reader (allow multiple TMS) (stac-utils/titiler-pgstac!28)
0.1.0.a2 (2021-12-13) Pre-Release¶
- Switch to psycopg3
- add
filter-langin Search model to support newer PgSTAC (with CQL-2) - add
metadatain Search model to allow forwarding metadata to the search query entry in PgSTAC
breaking changes
- Unify reader/writer db pools to
request.app.state.dbpool - rename
PostgresSettings.db_max_inactive_conn_lifetimetoPostgresSettings.max_idle - remove
PostgresSettings().reader_connection_stringandPostgresSettings().writer_connection_string. Replaced withPostgresSettings().connection_string - update titiler requirement (>= 0.4)
0.1.0.a1 (2021-09-15) Pre-Release¶
- Surface PgSTAC options (
scan_limit,items_limit,time_limit,exitwhenfullandskipcovered) in Tile endpoints
breaking changes
- remove
psycopg2requirements to avoid conflict withpsycopg2-binary(stac-utils/titiler-pgstac!15)
0.1.0.a0 (2021-09-06) Pre-Release¶
Initial release