terrain-rgb-slope

0.0.3 • Public • Published

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.");
});

Readme

Keywords

Package Sidebar

Install

npm i terrain-rgb-slope

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

7.5 kB

Total Files

3

Last publish

Collaborators

  • colkassad