Prerequisites
- You have a Tilebox API key.
- You have installed the Python SDK.
Define the catalog schema
Start by choosing the spatio-temporal dataset kind and the custom fields for your catalog. Tilebox adds the requiredtime, id, ingestion_time, and geometry fields automatically.
The example catalog tracks imagery products with a provider product ID, a storage location, cloud cover, and processing level. Field descriptions and example values become part of the generated schema documentation.
Python
Create the dataset
Callcreate_or_update_dataset with the dataset kind, code name, field list, and display name. The code name becomes the stable identifier used in SDK calls.
Python
create_or_update_dataset updates it instead of creating a duplicate. This makes the snippet safe to keep in a setup script.
The Python SDK currently sets the dataset display name and schema. Field-level
description and example_value entries populate the generated schema documentation. Use the Tilebox Console when you want to add rich Markdown documentation to the dataset page.Inspect the generated schema documentation
Tilebox uses the dataset kind and field annotations to document the schema. Required fields are added by the dataset kind, and your custom fields appear with their descriptions and examples. For this catalog, the complete schema includes:| Field | Type | Purpose |
|---|---|---|
time | Required | Timestamp associated with the datapoint. |
id | Required | Tilebox-generated UUID for the datapoint. |
ingestion_time | Required | Time when Tilebox ingested the datapoint. |
geometry | Required | Geometry used for spatial queries. |
product_id | Custom | Stable product or scene identifier. |
location | Custom | Storage path or provider product location. |
cloud_cover | Custom | Cloud cover percentage for filtering. |
processing_level | Custom | Provider processing level or product type. |
Add richer dataset documentation
Use field descriptions for schema-level documentation. Use the Console documentation editor when you want longer Markdown documentation for the dataset, such as provenance notes, quality caveats, ingestion rules, or examples for downstream users.
Markdown
Create a collection
After creating the dataset, create a collection to hold datapoints. Collections let you organize datapoints within the same schema, for example by provider, product family, or processing pipeline.Python
Prepare datapoints
Load your source metadata into a GeoDataFrame. The geometry column should contain the footprint for each datapoint.Python
Ingest the catalog
Ingest the prepared records into a collection.Python
Query by time and location
After ingestion, use the same query model as Tilebox open data catalogs.Python
Next steps
Spatio-temporal datasets
Learn the required fields and query behavior.
Ingest from common file formats
Load CSV, Parquet, GeoParquet, and NetCDF data before ingestion.
Ingest into a spatio-temporal catalog
Prepare GeoParquet metadata and ingest it into this catalog.
