/mapZenHelper

openframeworks, mapzen, terrain

Primary LanguageC++

mapZenHelper

A basic helper sketch to load and stitch mapzen terrain tiles into an ofImage for openframeworks. It only loads Terrarium and Normal format tiles for the moment...

https://mapzen.com/documentation/terrain-tiles/formats/

Terrarium format PNG tiles contain raw elevation data in meters, in Web Mercator projection (EPSG:3857). All values are positive with a 32,768 offset, split into the red, green, and blue channels, with 16 bits of integer and 8 bits of fraction.

Normal format PNG tiles are processed elevation data with the the red, green, and blue values corresponding to the direction the pixel “surface” is facing (its XYZ vector), in Web Mercator projection (EPSG:3857). The alpha channel contains quantized elevation data with values suitable for common hypsometric tint ranges.

Updated to work with Nextzen alternative

https://mapzen.com/blog/migration/

You can get an API key here

https://www.nextzen.org/


raw converted normal