Python API
API documentation for the stacrs Python package.
Format
Several functions, including stacrs.write, take a format
argument.
Valid values are:
json
orgeojson
: compact (no whitespace) JSONjson-pretty
orgeojson-pretty
: indented JSONndjson
: newline-delimited JSON (also known asgeojson-seq
)parquet
orgeoparquet
: uncompressed geoparquetparquet[{compression}]
orgeoparquet[{compression}]
: compressed parquet, where valid values forcompression
are 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.