Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/notwoods/mapbox-elevation

A script to convert mapbox elevation tiles into grayscale heightmaps.
https://github.com/notwoods/mapbox-elevation

canvas image-manipulation map-tiles mapbox unity

Last synced: 28 days ago
JSON representation

A script to convert mapbox elevation tiles into grayscale heightmaps.

Awesome Lists containing this project

README

        

# mapbox-elevation
A script to convert mapbox elevation tiles into grayscale heightmaps.
[Demo clip](demo.mp4)

Various tools like [Blender](https://www.blender.org/) support generating meshes
from grayscale heightmaps. Mapbox provides an API to access heightmaps, but
uses a different format to encode the heights in order to allow for higher
resolution in the elevation values.

When run with a local webserver, this program will take the file named
`heightmap.png` (from the Mapbox API) and create a grayscale version
using the Javascript Canvas API. The output in the Canvas can be saved
as a new image.

## See also
* [Mapbox - Access elevation data](https://www.mapbox.com/help/access-elevation-data)

## Licensing
This project is avaliable under the MIT License.