0.0.3 • Published 4 years ago
terrain-rgb-slope v0.0.3
terrain-rgb-slope
Converts Mapbox's Terrain-RGB PNG tiles to 16 bit greyscale PNGs depicting integer slope percentage. See here for an online demo.
Installation
npm install terrain-rgb-slope
Examples
var converter = require('terrain-rgb-slope');
var options = {
inputFilePath: '/path/to/my/terrain-rgb-tile.png',
outputFilePath: '/path/to/output/16bit-slope.png'
};
converter.convertToSlope(options, function() {
console.log("Finished.");
});