#geospatial #stac #metadata #geo #raster

stac-api

Rust library for the SpatioTemporal Asset Catalog (STAC) API specification

2 unstable releases

0.2.0 Apr 4, 2023
0.1.0 Jan 14, 2023

#536 in Science

28 downloads per month
Used in 2 crates (via stac-async)

MIT/Apache

145KB
2.5K SLoC

stac-api

GitHub Workflow Status docs.rs Crates.io Crates.io Contributor Covenant

Rust implementation of the data structures that make up the STAC API specification. This is not a server implementation. For an (experimental) STAC API server written in Rust, check out stac-server-rs.

Usage

To use the library in your project:

[dependencies]
stac-api = "0.2"

Examples

// Build the root (landing page) endpoint.
let root = stac_api::Root {
    catalog: stac::Catalog::new("an-id", "a description"),
    conformsTo: vec!["https://api.stacspec.org/v1.0.0-rc.2/core".to_string()],
};

Please see the documentation for more usage examples.

Dependencies

~4.5–6MB
~142K SLoC