Crates.io | stac-server |
lib.rs | stac-server |
version | 0.1.0 |
source | src |
created_at | 2024-04-29 20:43:02.826771 |
updated_at | 2024-04-29 20:43:02.826771 |
description | SpatioTemporal Asset Catalog (STAC) API server |
homepage | https://github.com/stac-utils/stac-rs |
repository | https://github.com/stac-utils/stac-rs |
max_upload_size | |
id | 1224485 |
size | 441,889 |
A STAC API server with multiple backends.
To run a server from the command-line, use stac-cli. Any arguments will be interpreted as hrefs to STAC collections, items, and item collections, and will be loaded into the server on startup.
stac serve collection.json items.json
To use the pgstac backend:
stac serve --pgstac postgresql://username:password@localhost:5432/postgis
To use this library in another application:
[dependencies]
stac-server = "0.1"
There is currently no infrastructure-as-code for deploying stac-server. We hope to provide this support in the future.
stac-server has three features, two of which are enabled by default.
The axum
feature is on by default and enables routing and serving using axum.
If you want to use the Api
functionality with a different web framework, you can depend on this library and disable the axum
feature.
In order to search with the naïve memory backend, we need the geo
feature on the stac crate.
If you aren't using the memory backend, you can disable the memory-item-search
feature, which is enabled by default.
In order to use the pgstac, you need to enable the pgstac
feature.
This table lists the provided backends and their supported conformance classes and extensions:
Capability | Memory backend | Pgstac backend |
---|---|---|
STAC API - Core | ✅ | ✅ |
STAC API - Features | ✅ | ✅ |
STAC API - Item Search | ✅ | ✅ |
Aggregation extension | ✖️ | ✖️ |
Browseable extension | ✖️ | ✖️ |
Children extension | ✖️ | ✖️ |
Collection search extension | ✖️ | ✖️ |
Collection transaction extension | ✖️ | ✖️ |
Fields extension | ✖️ | ✖️ |
Filter extension | ✖️ | ✖️ |
Free-text search extension | ✖️ | ✖️ |
Language (I18N) extension | ✖️ | ✖️ |
Query extension | ✖️ | ✖️ |
Sort extension | ✖️ | ✖️ |
Transaction extension | ✖️ | ✖️ |
This crate is part of the stac-rs monorepo, see its README for contributing and license information.