API
API documentation for the rustac Python package.
Format
Several functions, including rustac.write, take a format argument.
Valid values are:
jsonorgeojson: compact (no whitespace) JSONjson-prettyorgeojson-pretty: indented JSONndjson: newline-delimited JSON (also known asgeojson-seq)parquetorgeoparquet: uncompressed geoparquetparquet[{compression}]orgeoparquet[{compression}]: compressed parquet, where valid values forcompressionare the lowercase string versions of the values enumerated in stac::geoparquet::Compression.
Tip
If you're not sure which geoparquet compression to use, we suggest parquet[snappy]
Note
The distinction between pretty and compact JSON, or compressed and uncompressed geoparquet, is only relevant on write. On read, the formats are treated the same.
Under the hood, the format argument is parsed into a Format enum.