https://github.com/fxi/tifftobathymetry
Tiff to bathymetry mbtiles using geotiff, d3-contour and tippecanoe
https://github.com/fxi/tifftobathymetry
Last synced: 2 months ago
JSON representation
Tiff to bathymetry mbtiles using geotiff, d3-contour and tippecanoe
- Host: GitHub
- URL: https://github.com/fxi/tifftobathymetry
- Owner: fxi
- Created: 2020-05-12T16:22:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-29T16:55:06.000Z (over 2 years ago)
- Last Synced: 2025-04-14T15:21:56.524Z (2 months ago)
- Language: JavaScript
- Size: 8.21 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Script to convert tiff to bathymetry contour mbtiles

## 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