Skip to content

The eoapi-devseed repository hosts customized versions of each base service. The documentation below demonstrates how each service can be customized. The eoAPI services can work in parallel or combination with each other.

eoapi.stac

Built on stac-fastapi.pgstac application, adding a TiTilerExtension and a simple Search Viewer.

The service includes:

  • If you use the docker-compose configuration, see docs for the full stac-fastapi implementation.
  • Simple STAC Search viewer—see viewer if you are using the docker-compose configuration.
  • Proxy to the tiler endpoint for STAC Items.

When the TITILER_ENDPOINT environment variable is set (pointing to the raster application), additional endpoints will be added to the stac-fastapi application (see: stac/extension.py):

  • /collections/{collectionId}/items/{itemId}/tilejson.json: Return the raster tilejson for an item
  • /collections/{collectionId}/items/{itemId}/viewer: Redirect to the raster viewer

eoapi.stac OpenAPI documentation Metadata STAC search viewer

Code: /runtimes/eoapi/stac


eoapi.raster

The dynamic tiler deployed within eoapi-devseed is built on top of titiler-pgstac and pgstac. It enables large-scale mosaic based on the results of STAC search queries.

The service includes all the default endpoints from titiler-pgstac application and:

  • /: a custom landing page with links to the different endpoints
  • /mosaic/builder: a virtual mosaic builder UI that helps create and register STAC Search queries
  • /collections: a secret (not in OpenAPI documentation) endpoint used in the mosaic-builder page
  • /collections/{collection_id}/items/{item_id}/viewer: a simple STAC Item viewer

eoapi.stac OpenAPI documentation Raster mosaic builder STAC Item viewer

Code: /runtimes/eoapi/raster


eoapi.vector

OGC Features and Tiles API built on top of tipg.

The API will look for tables in the database's public schema by default. We've also added three functions that connect to the pgSTAC schema:

  • pg_temp.pgstac_collections_view: Simple function which returns PgSTAC Collections
  • pg_temp.pgstac_hash: Return features for a specific searchId (hash)
  • pg_temp.pgstac_hash_count: Return the number of items per geometry for a specific searchId (hash)

eoapi.vector OpenAPI documentation eoapi.vector landing page

Code: /runtimes/eoapi/vector


STAC browser

The custom browser configuration can be modified using the config located in /dockerfiles/browser_config.js. For more information about available configurations, see the Radiant Earth repository.