Skip to content

gwio/mapZenHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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

About

openframeworks, mapzen, terrain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages