27 Years of Wildfires in Montenegro: Cloud-Native GeoParquet Pushdown, Spatial Enrichment, and Zero-Egress PMTiles
Published: 12/1/2026
Montenegro is a small country with a large fire problem. Its summers are dry, its terrain is steep, and a single ignition event in the karst above the Adriatic can burn for weeks. Answering a deceptively simple question — how much burn activity has this country actually recorded in the last 27 years, and where? — turned into an exercise in cloud-native geospatial engineering: predicate pushdown into GeoParquet, authoritative spatial enrichment, and a delivery pipeline with no backend and no egress bill.
This post documents the architecture, the benchmark, and the accuracy trap that matters more than any of it.
The problem and the source data
Fire detections come from NASA FIRMS — the Fire Information for Resource Management System, which publishes near-real-time thermal anomalies from the MODIS and VIIRS instruments. The archive we needed covers 27 years (2000–2026).
The raw FIRMS distributions are global and enormous. We deliberately avoided re-processing the whole planet. Instead we read from Chris Holmes’ Portolan GeoParquet 2.0 mirror of FIRMS — a cloud-native, columnar mirror in which the 2024 global dataset alone is roughly 69 million rows. GeoParquet 2.0 is the point: geometry lands in the file as standard WKB with spatial metadata, so where the data lives is expressed in the format itself, and a query engine can skip most of it without reading it.
GeoParquet 2.0 + DuckDB 2.0 pushdown benchmark
The workload is a single spatial predicate: give me every detection inside a bounding box. Historically that meant downloading partitioned files and filtering after the fact. With DuckDB v2.0.0 (“Cyanoptera”) and the duckdb-spatial extension, the predicate
ST_Intersects(geometry, ST_MakeEnvelope(min_lon, min_lat, max_lon, max_lat))
is pushed down into the Parquet Row Group metadata using the per-row-group bounding boxes that GeoParquet 2.0 writes. DuckDB never materialises the rows it does not need — it does not even fetch the column chunks.
Measured against the 2024 global dataset over HTTP:
| Metric | Value |
|---|---|
| Row Groups in the dataset | 690 |
| Row Groups actually scanned | 2 |
| Pruning rate | 99.71% |
| Bytes transferred | 4.0 MiB |
| HTTP GET requests | 8 |
2 of 690 Row Groups, 99.71% pruned, 4.0 MiB over 8 HTTP GETs — for a country-level query against a globally scoped file. That is the entire reason the pipeline is cheap: the expensive work was eliminated by the format, not by a cluster.
The bounding box vs. country boundary trap
A bounding box is not a country.
Montenegro is a rough quadrilateral with a coastline, a contested-looking border with Bosnia & Herzegovina and Croatia to the northwest, Albania and Kosovo to the east, and Serbia to the northeast. Any axis-aligned rectangle that contains Montenegro also contains foreign territory.
The numbers make the trap concrete:
- An expanded bounding box — deliberately generous — returned 153,293 detections.
- The tight bounding box used for the 2024 sweep returned 9,519 detections, and that number is not Montenegrin statistics: it silently sweeps in parts of Bosnia & Herzegovina, Croatia, and Albania.
Publishing either figure as “wildfires in Montenegro 2024” would be wrong. A bounding box answers a geometric question; national statistics require the national boundary.
Enrichment against authoritative OSM boundaries
To turn geometry into statistics we enriched every candidate detection against authoritative OpenStreetMap administrative boundaries:
- ADM0 — the national boundary of Montenegro,
- all 25 municipalities, including the newer units Tuzi and Zeta,
- 5 national parks.
The spatial join runs in EPSG:32634 (UTM Zone 34N), the correct projected CRS for Montenegro — metric distances instead of degrees, which matters for the buffer step. On top of the strict national polygon we added an organic 5 km cross-border buffer to capture fire that crosses the frontier in either direction, because a fire does not read the ADM0 polygon before it spreads.
After enrichment:
- 69,402 detections strictly inside Montenegro,
- 4,680 in 2024,
- 12,015 in 2026,
- 6,090 detections in the 5 km cross-border threat buffer,
- 2,678 detections inside national parks.
National park breakdown:
| National park | Detections |
|---|---|
| Skadarsko jezero | 1,598 |
| Durmitor | 682 |
| Lovćen | 299 |
| Prokletije | 80 |
| Biogradska gora | 19 |
Top municipalities by detection count:
| Municipality | Detections |
|---|---|
| Nikšić | 22,315 |
| Podgorica | 11,650 |
| Cetinje | 8,837 |
The concentration is not accidental: Nikšić, Podgorica, and Cetinje cover the largest and most fire-prone land areas in the country, and the buffer count of 6,090 quantifies exactly how much of the regional signal a naive national clip would have deleted.
Zero-egress web architecture
The analytical result is only useful if it is explorable. The serving layer is deliberately boring, entirely static, and costs $0/month in egress:
firms_mne_alltime.pmtiles— a lossless PMTiles archive of all detections, 6.36 MB, zoom levels z5–z11.mne_admin_layers.geojson— the boundary layers, 132.8 KB.- Pre-aggregated JSON statistics — per-year and per-month counts, served as plain objects.
All three are hosted on Cloudflare R2 (data.lurranova.me) and consumed through HTTP Range requests — the browser fetches only the PMTiles tiles it is about to draw, and only the byte ranges it needs. There is no tile server, no database, and no query API in the request path.
The frontend is a MapLibre GL + Vite application deployed to Cloudflare Pages at geo.lurranova.me. It renders the vector tiles client-side and slices the pre-aggregated stats for the timeline. Because both the data and the application live on Cloudflare’s network, the object-store → browser path never incurs egress charges.
The map above is that application in embedded mode (?embed=1&theme=light), reading live byte ranges from R2 inside this page.
Reproduce it
The benchmark, the enrichment pipeline, and the tile build are open source:
- Pipeline & benchmark: github.com/lurranova/balkans-wildfire-portolan-experiments
- Fullscreen interactive portal: geo.lurranova.me/wildfires
If you are dealing with earth observation archives, GeoParquet pushdown, or static geospatial delivery at scale, that is the work we do. Reach out at [email protected].