stac-api

Crates.iostac-api
lib.rsstac-api
version0.4.0
sourcesrc
created_at2023-01-14 14:53:56.716794
updated_at2024-04-29 20:19:26.361018
descriptionRust library for the SpatioTemporal Asset Catalog (STAC) API specification
homepagehttps://github.com/stac-utils/stac-rs
repositoryhttps://github.com/stac-utils/stac-rs
max_upload_size
id758894
size102,046
Pete Gadomski (gadomski)

documentation

README

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.

Commit count: 501

cargo fmt