Make tiles out of trees.
To install the node.js dependencies:
npm installWe also depend on GDAL and Tippecanoe. On Macs, both can be installed through Homebrew.
To install GDAL using Homebrew:
brew install gdalTo install tippecanoe using Homebrew:
brew install tippecanoeTo run the whole pipeline:
npm run allYou can also run each stage of the pipeline independently. A full run does the following:
npm run download # downloads all of the source data
npm run convert # converts all source data into newline delimited GeoJSON
npm run normalize # normalizes all the converted files
npm run concatenate # smashes all the normalized files together
npm run save # saves to the db
npm run tile # builds a vector tile set from the concatenated fileWe also include a tile server so that you can see the neat things you've made:
npm run tile-serverYou will need to have MAPBOX_API_TOKEN set in your environment to view your tiles using the tile server.
Forked and refactored from: opentrees-data