Chronic burn recurrence spatial detector engine (src/lib/gis/burn-recurrence.ts) #68

Closed
opened 2026-10-14 22:28:41 +00:00 by yuris · 0 comments
Owner

What to build

Implement the spatial intersection helper in src/lib/gis/burn-recurrence.ts to detect whether an active fire cluster centroid intersects historical burn scar polygons from 2015, 2019, or 2023.

Technical specifications

  1. Target files:
    • src/lib/gis/burn-recurrence.ts: Spatial query engine.
    • src/lib/gis/__tests__/burn-recurrence.test.ts: Vitest test suite.
  2. Interface contract:
    • detectBurnRecurrence(coord: [number, number], scars: BurnScarFeature[]): RecurrenceResult.

Acceptance criteria

  • Correctly identifies burn history years (e.g. [2019, 2023]).
  • Returns empty array for unburned land.
  • Query executes under 2ms.

Authoritative Specifications & Reference Documentation

### What to build Implement the spatial intersection helper in `src/lib/gis/burn-recurrence.ts` to detect whether an active fire cluster centroid intersects historical burn scar polygons from 2015, 2019, or 2023. ### Technical specifications 1. **Target files**: - `src/lib/gis/burn-recurrence.ts`: Spatial query engine. - `src/lib/gis/__tests__/burn-recurrence.test.ts`: Vitest test suite. 2. **Interface contract**: - `detectBurnRecurrence(coord: [number, number], scars: BurnScarFeature[]): RecurrenceResult`. ### Acceptance criteria - [x] Correctly identifies burn history years (e.g. `[2019, 2023]`). - [x] Returns empty array for unburned land. - [x] Query executes under 2ms. --- ### Authoritative Specifications & Reference Documentation - **Titik Gambut Architecture & Subsystem Contract**: [`docs/ARCHITECTURE.md`](https://git.nokopia.com/yuris/titik-gambut-next/src/branch/main/docs/ARCHITECTURE.md) - **Copernicus Sentinel-2 STAC API**: [Earth Search STAC API](https://earth-search.aws.element84.com/v1) — AWS Element84 Sentinel-2 L2A STAC catalog. - **Normalized Burn Ratio (NBR) Standard**: [USGS Landsat NBR](https://www.usgs.gov/landsat-missions/normalized-burn-ratio) — Formula: $(B8 - B12) / (B8 + B12)$. - **European Forest Fire Information System (EFFIS)**: [EFFIS Burn Severity Classification](https://effis.jrc.ec.europa.eu/) — Delta-NBR fire damage scoring.
yuris changed title from Issue 55: [Backend] Chronic burn recurrence spatial detector engine (src/lib/gis/burn-recurrence.ts) to [Backend] Chronic burn recurrence spatial detector engine (src/lib/gis/burn-recurrence.ts) 2026-10-14 22:31:25 +00:00
yuris changed title from [Backend] Chronic burn recurrence spatial detector engine (src/lib/gis/burn-recurrence.ts) to Chronic burn recurrence spatial detector engine (src/lib/gis/burn-recurrence.ts) 2026-10-14 22:38:30 +00:00
yuris closed this issue 2026-10-15 05:22:13 +00:00
Sign in to join this conversation.
No labels
backend
frontend
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
yuris/titik-gambut-next#68
No description provided.