Skip to main content

Crate stac_io

Crate stac_io 

Source

Re-exports§

pub use stream::Finalize;
pub use stream::ItemStream;
pub use stream::StreamSearch;
pub use stream::StreamedSearch;
pub use stream::write_item_collection;

Modules§

api
A STAC API client.
stream
Streaming JSON writer for a search-response stac::api::ItemCollection: the features array is written one item at a time, and the rest of the collection (links, context, counts) is supplied by a finalize callback after the items drain (the next link needs the last item; a numberMatched count may run concurrently).

Enums§

Error
Crate-specific error enum
Format
The format of STAC data.
RealizedHref
An href that has been realized to a path or a url.

Traits§

FromJsonPath
Create a STAC object from JSON.
FromNdjsonPath
Create a STAC object from newline-delimited JSON.
Readable
ToJsonPath
ToNdjsonPath
Write a STAC object to newline-delimited JSON.
Writeable

Functions§

ndjson_item_reader
Returns an iterator that yields one Item per line from a reader.
read
Reads a STAC value from an href.
user_agent
Returns a string suitable for use as a HTTP user agent.
write
Writes a STAC value to a path.

Type Aliases§

Result
Crate-specific result type.