stac-utils / pgstac

Schema, functions and a python library for storing and accessing STAC collections and items in PostgreSQL
MIT License
145 stars 34 forks source link

Do we have any plan to add filtering criteria to `all_collections` or add another function that can list filtered collections? #139

Open Geosynopsis opened 2 years ago

Geosynopsis commented 2 years ago

Use-Case: Restricting collections based on ACL

The STAC API that implements ACL on top of the collections could use it to provide STAC compliant interface while using pgstac as the backend. Is there any plan for this feature?

bitner commented 2 years ago

There is no specification in STAC as far as I know for filtering calls to /collections.

You can search items specifying only specific collections using /search?collections=collectiona,collectionb

Geosynopsis commented 2 years ago

Yes, I understand from the endpoint's point of view. But is it also translatable 1-to-1 to the database functions?

bitner commented 2 years ago

I do not have any plans for adding this, but i am open to pull requests.

On Thu, Sep 8, 2022, 4:44 AM Abhishek Manandhar @.***> wrote:

Yes, I understand from the endpoint's point of view. But is it also translatable to the database functions?

— Reply to this email directly, view it on GitHub https://github.com/stac-utils/pgstac/issues/139#issuecomment-1240480294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABIHXER4ZXGX3EN6NL33O3V5GYQFANCNFSM6AAAAAAQDKSSWQ . You are receiving this because you commented.Message ID: @.***>