BRGM PRIMS restoration infrastructure data ingestion & GeoJSON normalization #55

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

What to build

Create an automated data pipeline script in scripts/ingest-restoration.sh to fetch and normalize BRGM PRIMS peatland restoration intervention points (Canal Blocks / Sekat Kanal, Deep Wells / Sumur Bor, and Retention Basins / Embung).

Technical specifications

  1. Target files:
    • scripts/ingest-restoration.sh: Ingestion script.
    • src/types/restoration.ts: TypeScript data models for restoration infrastructure.
    • public/data/restoration_infrastructure.geojson: Normalized GeoJSON output.
  2. Schema:
    • id, type: SEKAT_KANAL | SUMUR_BOR | EMBUNG.
    • kondisi: BAIK | RUSAK_RINGAN | RUSAK_BERAT.
    • tahun_bangun: Integer year.
    • koordinat: [lng, lat].

Acceptance criteria

  • Fetches and outputs valid GeoJSON conforming to RestorationFeatureCollection.
  • Filters out invalid coordinate entries (outside Indonesian bounding box).

Authoritative Specifications & Reference Documentation

  • Titik Gambut Architecture & Subsystem Contract: docs/ARCHITECTURE.md
  • BRGM PRIMS (Peatland Restoration Information & Monitoring System): prims.brgm.go.id — Peat drainage canals, canal blocks (sekat kanal), and deep wells (sumur bor).
  • Pantau Gambut Canal Network: pantaugambut.id — Field verification data on drainage canal degradation.
### What to build Create an automated data pipeline script in `scripts/ingest-restoration.sh` to fetch and normalize BRGM PRIMS peatland restoration intervention points (Canal Blocks / *Sekat Kanal*, Deep Wells / *Sumur Bor*, and Retention Basins / *Embung*). ### Technical specifications 1. **Target files**: - `scripts/ingest-restoration.sh`: Ingestion script. - `src/types/restoration.ts`: TypeScript data models for restoration infrastructure. - `public/data/restoration_infrastructure.geojson`: Normalized GeoJSON output. 2. **Schema**: - `id`, `type`: `SEKAT_KANAL` | `SUMUR_BOR` | `EMBUNG`. - `kondisi`: `BAIK` | `RUSAK_RINGAN` | `RUSAK_BERAT`. - `tahun_bangun`: Integer year. - `koordinat`: `[lng, lat]`. ### Acceptance criteria - [x] Fetches and outputs valid GeoJSON conforming to `RestorationFeatureCollection`. - [x] Filters out invalid coordinate entries (outside Indonesian bounding box). --- ### 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) - **BRGM PRIMS (Peatland Restoration Information & Monitoring System)**: [prims.brgm.go.id](https://prims.brgm.go.id/) — Peat drainage canals, canal blocks (*sekat kanal*), and deep wells (*sumur bor*). - **Pantau Gambut Canal Network**: [pantaugambut.id](https://pantaugambut.id/) — Field verification data on drainage canal degradation.
yuris changed title from Issue 42: [Backend] BRGM PRIMS restoration infrastructure data ingestion & GeoJSON normalization to [Backend] BRGM PRIMS restoration infrastructure data ingestion & GeoJSON normalization 2026-10-14 22:31:27 +00:00
yuris changed title from [Backend] BRGM PRIMS restoration infrastructure data ingestion & GeoJSON normalization to BRGM PRIMS restoration infrastructure data ingestion & GeoJSON normalization 2026-10-14 22:38:32 +00:00
yuris closed this issue 2026-10-16 01:02:44 +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#55
No description provided.