Documentation Index
Fetch the complete documentation index at: https://mintlify.com/terrafloww/rasteret/llms.txt
Use this file to discover all available pages before exploring further.
Function Signature
Description
Build a Collection from a registered dataset. Looks up the dataset in theDatasetRegistry and routes to either build_from_stac() or build_from_table() based on the descriptor’s access fields.
For descriptors backed only by geoparquet_uri (e.g., local collections registered with register_local()), bbox and date_range are optional and ignored.
For auth-required datasets, Rasteret can auto-create a backend from a descriptor’s s3_credentials_url when no explicit backend is passed. This requires valid credentials in the environment (or ~/.netrc) for the relevant provider.
Parameters
Registry ID (e.g.,
"earthsearch/sentinel-2-l2a").Logical name for the collection.
(minx, miny, maxx, maxy) bounding box. Required for STAC-backed descriptors.(start, end) ISO date strings. Required for STAC-backed descriptors.Cache directory. Defaults to
~/rasteret_workspace.Rebuild even if a cache already exists.
Maximum concurrent COG header fetches.
Additional STAC search parameters.
Use the GeoParquet path when available.
Override the descriptor’s default STAC API endpoint.
Cloud configuration for URL rewriting.
I/O backend for authenticated range reads. When omitted, Rasteret auto-creates one for known auth-required datasets. See
create_backend().Returns
A Collection object ready for spatial queries and pixel reads.
Raises
- KeyError: If the dataset is not in the registry.
- ValueError: If the descriptor has no configured access method, or if auth is required but no backend could be created.
Usage Example
Related Functions
- build_from_stac() - Build directly from STAC API
- build_from_table() - Build from external Parquet/GeoParquet
- load() - Load a persisted Collection
- DatasetRegistry - Registry of dataset descriptors