Skip to content

rainflame/map-layers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rainflame map layers

A series of custom map layers. The source code for each layer is provided to download data, process, and produce a raster or vector pmtiles file.

The build pipelines we've developed are different than an integrated tool like planetiler that's designed for building vector tiles from OSM data for very large regions. Instead, we've designed the processing for each layer around a specific data source for much smaller regions. Sources include public datasets provided by U.S. federal and state agencies and OpenStreetMap.

Each pipeline contains a number of layer-specifc build steps that progressively transform that data for that layer using python and bash scripts. The pipelines utilize a variety of GIS tools including GDAL, fiona, shapely, in addition to some custom tools we built like geopolygonize and geopolymid. Once processing is complete, each build pipeline produces a geopackage file. We then use tippecanoe to tile the data into a protomaps pmtiles archive.

To run any of the layer build pipelines, first make sure you have conda or mamba installed.

Create the environment:

mamba env create -f environment.yml

Activate it:

mamba activate map-layers

Then follow the instructions below to build the layers:

  • Elevation (hillshading + contours)
  • Glaciers (highest-resolution glacier polygons)
  • Waterways (lakes, rivers, canals, streams and so on)
  • Wildfires (historic wildfire perimeters)
  • Landcover (polygons for 1000+ landcover classes)
  • Snow (daily snowpack depth polygons)
  • Peaks (prominent points)
  • Trails (hiking, snowshoeing, and cross country skiing trails)