Skip to content

waterthetrees/tree-sources

Repository files navigation

Tree-Source

Make tiles out of trees.

Getting Started

To install the node.js dependencies:

npm install

We also depend on GDAL and Tippecanoe. On Macs, both can be installed through Homebrew.

To install GDAL using Homebrew:

brew install gdal

To install tippecanoe using Homebrew:

brew install tippecanoe

Running

To run the whole pipeline:

npm run all

You 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 file

We also include a tile server so that you can see the neat things you've made:

npm run tile-server

You 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