Write
rustac.write
async
write(
href: str,
value: dict[str, Any] | Sequence[dict[str, Any]],
*,
format: str | None = None,
parquet_compression: str | None = None,
store: AnyObjectStore | None = None,
) -> dict[str, str] | None
Writes STAC to a href.
Parameters:
-
href
(str
) âThe href to write to
-
value
(dict[str, Any] | Sequence[dict[str, Any]]
) âThe value to write. This can be a STAC dictionary or a list of items.
-
format
(str | None
, default:None
) âThe output format to write. If not provided, will be inferred from the href's extension.
-
parquet_compression
(str | None
, default:None
) âIf writing stac-geoparquet, sets the compression algorithm. https://docs.rs/parquet/latest/parquet/basic/enum.Compression.html is a list of what's available.
-
store
(AnyObjectStore | None
, default:None
) âThe object store to use for writing.
Returns:
-
dict[str, str] | None
âThe result of putting data into an object store, e.g. the e_tag and the version. None is returned if the file was written locally.
Examples: