Work / Case study 006
Canopy
The DC area’s street trees, through the year.
- 290,499public trees from three public inventories (Nov 20 refresh)
- 8 bytesper tree: position, species, trunk size and planting year
- 140species and genus calendars, covering 98% of the trees, each checked against at least two references
01 — The problem
DC, Arlington and Montgomery County each publish where their street trees stand and what species they are, but none of it says what a street looks like in April or November, and no two inventories spell a sweetgum the same way.
02 — The messy data
- DC: Liquidambar Stryaciflua ‘Sterile’ · Sweetgum (sterile)
- DC: Liquidambar rotundiloba · Rotundiloba sweetgum
- Arlington: Sweetgum, American (common name only, no botanical name)
- Montgomery: Liquidambar Styracifua · Sweetgum, trunk “1.5” stored as text
DDOT, Arlington County and MCDOT inventories, Nov 20, 2026
Sweetgum
Turns burgundy in early November.
One of 5,009 sweetgums in DC, the 7th most common street tree there.
A hand-kept alias table folds cultivars, synonyms and misspellings into one key per species, and Arlington’s common names are matched to species through an explicit table, not fuzzy matching. A name the table doesn’t know shows up as “species not recorded” instead of a wrong guess.
03 — How it works
Sources
Three public ArcGIS layers: DDOT’s street trees, Arlington’s parks department trees and MCDOT’s public tree inventory. Only species, size, planting date, condition and location are requested.
The 2nd of each month
GitHub Actions downloads all three again, grades each source, rebuilds and deploys. Each tree is packed into 8 bytes: its position to 16 bits each way inside its area’s box, species, trunk diameter and planting year.
Season model
Each species has a typical DC calendar: leaf-out, full leaf, bloom dates and flower color, fall dates and fall hue. One shared function turns a calendar and a day into a state and a color, for all 365 days.
Output
A MapLibre map with a custom WebGL layer, on Cloudflare Pages. The trees go to the GPU once, and the date only picks which day’s colors to read.
04 — Decisions worth noting
Changing the date changes three numbers.
Vector tiles would re-style every tree on every frame of playback, which tends to stutter on phones. Instead every tree is one GPU point, and its color comes from a lookup texture with a row per species and a column per day. Moving the scrubber blends two columns. Nothing is re-uploaded or re-styled. The trade-off is that all the trees load at once instead of tile by tile.
Typical timing, checked, and labeled as such.
The calendar for the 140 most common species and genera was drafted by a model, then checked field by field against two to six extension and botanical-garden references: 81 entries confirmed, 59 corrected. Yoshino cherries were drafted pink; the National Park Service, Missouri Botanical Garden and NC State describe them as white, so they show white. Every source is listed on the site’s calendar page, and under the date it says “Typical timing for DC, not live sightings.”
Gaps are shown, not filled in.
Montgomery’s public inventory covers only the county-road trees MCDOT has inspected or planted in recent years, so the site says it’s partial and shows the county’s required disclaimer word for word. Places with no public inventory, like Fairfax and Prince George’s, are hatched and labeled. If a source fails or shrinks by more than 30% in a monthly refresh, the map keeps last month’s trees for it, decoded from the committed build.
05 — What’s next
Fuller coverage: MCDOT’s complete inventory, which isn’t published, would roughly triple Montgomery’s trees if the county agrees, and Gaithersburg’s 11,469 trees need the city’s permission first.