Add STAC API to QA Deployment for Testing

Tom Kralidis has been working on a STAC API for pygeoapi here. We have done some local testing and decided we'd like to get this up on QA with the NHGF STAC so that more people can test it. This STAC API takes a OGC Feature or Record and translates a STAC search request into an OGC request. We therefore need to translate our STAC into a feature or record; we've decided to put the STAC into a postgres database using pgstac and pypgstac.

The first step to this will be to address stac#22 (closed). Once we have a container, we'll need to have pygeoapi point to this pgstac container.

We'd add the following to the gdp.yml config file to add a STAC API endpoint (changing the credentials / database information as needed):

    nhgf-stac-api:
        type: stac-collection
        title: NHGF STAC (API)
        description: NHGF STAC (API)
        links:
        - type: application/json
          rel: canonical
          title: NHGF STAC Catalog
          href: https://code.usgs.gov/wma/nhgf/stac/-/raw/main/catalog/catalog.json
          hreflang: en-US
        extents:
            spatial:
                bbox: [-180,-90,180,90]
                crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
        providers:
            - type: feature
              name: PostgreSQL
              data:
                host: localhost
                port: 5439
                dbname: postgis
                user: postgres
                password: password
                search_path: [pgstac]
              id_field: id
              table: collections
              geom_field: geometry
              time_field: datetime

I've attached a notebook that I used to do some local testing of STAC search on the STAC API endpoint.

@aaufdenkampe_limno.com @ttuhinanshu_element84.com for visibility!

stac-api.ipynb