hrecht / cherry-blossoms-analysis

Analysis and map tile creation for cherry-blossoms project
https://www.hrecht.com/cherry-blossoms/
4 stars 0 forks source link
r sf spatial-analysis wmata

Cherry blossoms data

This repo contains the data and map tile processing used in hrecht/cherry-blossoms for https://www.hrecht.com/cherry-blossoms/.

Data sources

Requirements

R for data analysis. Key packages used include some of the tidyverse for cleaning, sf for spatial analysis, and ggplot2 for mapping.

Building map tiles

Tiles for the interactive basemap are downloaded and built in scripts/00-make-basemap.sh. Install dependencies with homebrew:

brew install wget

Planetiler to build map tiles. Install Java 21+, necessary to run planetiler.

brew install --cask temurin

Save planetiler into the tiles subfolder (gitignored).

wget https://github.com/onthegomap/planetiler/releases/latest/download/planetiler.jar

Install tippecanoe for mbtiles merging.

brew install tippecanoe

Install pmtiles for clipping tiles to bounding box and converting into pmtiles format for the interactive map.

brew install pmtiles