stac-api 0.2.1

Rust library for the SpatioTemporal Asset Catalog (STAC) API specification
Documentation
stac-api-0.2.1 has been yanked.

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.2"

stac-api has one optional feature, schemars, which can be used to generate jsonschema documents for the API structures. This is useful for auto-generating OpenAPI documentation:

[dependencies]
stac-api = { version = "0.2", features = ["schemars"] }

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.