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.

Interactive explorer: 27 years of NASA FIRMS detections across Montenegro, all 25 municipalities and 5 national parks. Open fullscreen explorer ↗

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:

MetricValue
Row Groups in the dataset690
Row Groups actually scanned2
Pruning rate99.71%
Bytes transferred4.0 MiB
HTTP GET requests8

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:

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:

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:

National park breakdown:

National parkDetections
Skadarsko jezero1,598
Durmitor682
Lovćen299
Prokletije80
Biogradska gora19

Top municipalities by detection count:

MunicipalityDetections
Nikšić22,315
Podgorica11,650
Cetinje8,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:

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:

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].