#stac #geospatial #metadata #raster #assets #geo #api-server

stac-api

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

7 unstable releases (3 breaking)

0.4.0 Apr 29, 2024
0.3.3 Apr 7, 2024
0.3.2 Oct 11, 2023
0.3.0 Sep 25, 2023
0.1.0 Jan 14, 2023

#572 in Science

Download history 1/week @ 2024-02-01 8/week @ 2024-02-08 28/week @ 2024-02-15 38/week @ 2024-02-22 47/week @ 2024-02-29 59/week @ 2024-03-07 50/week @ 2024-03-14 82/week @ 2024-03-21 66/week @ 2024-03-28 181/week @ 2024-04-04 66/week @ 2024-04-11 16/week @ 2024-04-18 233/week @ 2024-04-25 29/week @ 2024-05-02 9/week @ 2024-05-09 10/week @ 2024-05-16

283 downloads per month
Used in 4 crates

MIT/Apache

1.5MB
3.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 a STAC API server written in Rust, check out stac-server-rs.

Usage

To use the library in your project:

[dependencies]
stac-api = "0.4"

stac-api has one optional feature. geo enables Search::match:

[dependencies]
stac-api = { version = "0.3", features = ["geo"] }

Examples

use stac_api::{Root, Conformance, CORE_URI};
use stac::Catalog;

// Build the root (landing page) endpoint.
let root = Root {
    catalog: Catalog::new("an-id", "a description"),
    conformance: Conformance {
        conforms_to: vec![CORE_URI.to_string()],
    }
};

Please see the documentation for more usage examples.

Other info

This crate is part of the stac-rs monorepo, see its README for contributing and license information.

Dependencies

~4.5–7MB
~159K SLoC