sonthuybacha / tiffToBathymetry

Tiff to bathymetry mbtiles using geotiff, d3-contour and tippecanoe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Script to convert tiff to bathymetry contour mbtiles

sample

Install

  • brew install tippecanoe
  • npm install

Data preprocessing

  1. Download SRTM data from http://www.shadedrelief.com/cleantopo2/
  2. Replace value above 10000 by nulls. In GRASS : r.mapcalc expression="clean_topo_ocean = clean_topo > 10000 ? null() : 10000 - clean_topo" --overwrite
  3. Export as geotiff

Configuration

  • none. Yet. It's hardcoded in the script

Usage

  1. Put tiff in './in' folder
  2. node index.js
  3. Output will be in '/out' folder

About

Tiff to bathymetry mbtiles using geotiff, d3-contour and tippecanoe


Languages

Language:JavaScript 100.0%