developmentseed / eoAPI

[Active Development] Earth Observation API (Metadata, Raster and Vector services)
https://eoapi.dev
MIT License
205 stars 21 forks source link

Context STAC extension #32

Closed drnextgis closed 1 year ago

drnextgis commented 2 years ago

Context extension (to be more precise its matched property) is disabled by default in PGStac. I think we should find a way to make it configurable.

It seems that it can be easily added to db_handler but what about database service in the docker-compose?

vincentsarago commented 2 years ago

👍

if we do want it in the docker-compose, it means we will have to create a Dockerfile, I think it's fine to not have it for now.🤷

Feel free to update db_handler to register the context settings. You could either use an environment variable or pass something in the resource properties: https://github.com/developmentseed/eoAPI/blob/66085ac249752c6ef0adbb09026f187fe21f29f6/deployment/cdk/app.py#L92-L98 https://github.com/developmentseed/eoAPI/blob/66085ac249752c6ef0adbb09026f187fe21f29f6/deployment/handlers/db_handler.py#L140