Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.69 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.69 KB

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 our stac-server.

Usage

To use the library in your project:

[dependencies]
stac-api = "0.6"

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

[dependencies]
stac-api = { version = "0.6", 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.