Build a STAC Wildfire Imagery Evidence Link Compiler — implementation
Linked challenge: Build a STAC Wildfire Imagery Evidence Link Compiler
Prompt source
implementation139 lines11 sectionsNo variables1 code block
## Build
Process SpatioTemporal Asset Catalog metadata to identify post-wildfire multispectral imagery over damaged agricultural parcels. Construct verifiable claim evidence dossiers compiling pre- and post-fire imagery asset links for adjuster review.
## User
Agricultural Loss Adjuster
## Workflow
1. Parse agricultural parcel boundary GeoJSON geometries and claim event dates.
2. Search STAC catalogs for pre- and post-event multispectral Items.
3. Extract asset href links for red and near-infrared image bands.
4. Compile structured evidence dossiers containing imagery metadata and verified asset links.
## Interface
Web dashboard with a map bounding-box selector and evidence manifest download button.
## Data
Query public STAC Item JSON records from open static catalogs using pystac; use local mock STAC metadata for offline development.
Starter examples below are synthetic. They are not downloaded records.
## Source
[STAC specification](https://raw.githubusercontent.com/radiantearth/stac-spec/master/README.md)
Extracts STAC Item GeoJSON features, temporal properties, and asset link references according to the STAC specification.
## Tools
langgraph, pystac, shapely.
LangGraph orchestrates the multi-step retrieval of temporal catalog items and validates spatial intersections for the evidence dossier.
Reasoning model for extracting metadata and organizing structured claim imagery manifests.
## Deliverables
Submit runnable source, pinned dependencies, setup commands, a working interface, example outputs, and a recorded end-to-end demo. Include tests and an action log.
## Acceptance
- Validates that the retrieved STAC Item geometry intersects the requested parcel bounding box.
- Extracts valid asset href URLs matching the required multispectral bands.
- Generates a compiled imagery evidence dossier with an explicit manual review flag.
## Starter Examples
```json
[
{
"input": {
"claim_id": "CLM-FIRE-88",
"bbox": [
-120.5,
38.2,
-120.4,
38.3
],
"stac_item": {
"id": "S2A_20230815",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-120.6,
38.1
],
[
-120.3,
38.1
],
[
-120.3,
38.4
],
[
-120.6,
38.4
],
[
-120.6,
38.1
]
]
]
},
"assets": {
"nir": {
"href": "https://example.org/bands/B08.tif"
}
}
}
},
"expected_output": {
"claim_id": "CLM-FIRE-88",
"matched_item_id": "S2A_20230815",
"evidence_status": "READY_FOR_ADJUSTER",
"asset_url": "https://example.org/bands/B08.tif",
"record_type": "simplified synthetic app record"
}
},
{
"input": {
"claim_id": "CLM-FIRE-89",
"bbox": [
-120.5,
38.2,
-120.4,
38.3
],
"stac_item": {
"id": "S2A_EMPTY",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
0,
0
],
[
1,
0
],
[
1,
1
],
[
0,
1
],
[
0,
0
]
]
]
},
"assets": {}
}
},
"expected_output": {
"claim_id": "CLM-FIRE-89",
"matched_item_id": null,
"evidence_status": "NO_COVERAGE",
"asset_url": null,
"record_type": "simplified synthetic app record"
}
}
]
```
## Safety
Creates audit packages containing imagery links for human adjuster verification; does not approve insurance payouts or assess final severity.
Use mock external writes. Require human review before any real deployment.