Skip to content

NIMBO Terrain (Terrarium)

The Nimbo Terrarium layer provides a global Digital Elevation Model (DEM) service, including bathymetry (ocean depth). It delivers raster heightmaps encoded in RGBA tiles, following the historic format initiated by Mapzen.

This service is a high-performance replacement for legacy Mapzen endpoints, designed for 3D rendering engines, broadcast pipelines, and GIS applications requiring the specific Terrarium encoding standard.

The elevation values are encoded into the Red, Green, and Blue channels of the image tile. This technique allows 3D software (like Blender, Unity, or Three.js) to read elevation data from a standard image texture.

FeatureDetails
Service URLhttps://prod-data.nimbo.earth/tiles/terrarium/{z}/{x}/{y}?kermap_token=<YOUR_TOKEN>
FormatPNG
Zoom Levels0 to 13
Coordinate SystemWeb Mercator (EPSG:3857)
CoverageGlobal Land (85°N to 85°S)
Tile Size256x256 px

To parse the altitude in meters from a pixel, apply the specific Mapzen / Terrarium decoding equation:

Terminal window
elevation = (red * 256 + green + blue / 256) - 32768
  • Red (R) & Green (G): Encode the integer part of the elevation.
  • Blue (B): Encodes the fractional precision.
  • Offset (-32768): This significant negative offset allows the format to represent the deepest parts of the ocean (e.g., the Mariana Trench) without using negative pixel values.

Nimbo provides native terrain tiles up to Zoom Level 13.

While the legacy Mapzen dataset technically offered tiles up to z15, Nimbo’s optimized processing focuses on high-quality data aggregation up to z13 (approx. 19 meters/pixel at the equator).

Originally hosted on AWS Public Datasets (s3.amazonaws.com/elevation-tiles-prod/terrarium/), the Mapzen service was discontinued in 2018.

The Nimbo Terrarium feed is an exact replica of the historic Mapzen elevation dataset.

Nimbo hosts a static copy of the original archives to guarantee absolute backward compatibility for legacy systems and shaders built specifically for this dataset.

As defined in the original Mapzen specifications, this composite dataset includes:

  • Global Landmass (30m): primarily based on NASADEM and SRTM v3 (Shuttle Radar Topography Mission) provided by NASA, ensuring consistent mid-latitude coverage.
  • High-Resolution Regional Data: We integrate higher precision Local DEMs where available, such as USGS NED/3DEP (USA), CDEM (Canada), and EU-DEM (Europe).
  • Bathymetry & Oceans: Unlike many terrain services that clip at sea level, Terrarium includes seafloor topography derived from ETOPO1 (NOAA) and GEBCO, making it ideal for marine visualization.
  • Polar Regions: Enhanced coverage for Arctic and Antarctic regions using ArcticDEM and REMA datasets.
terrarium spatial resolution over the world
Terrarium spatial resolution over the world. Source: Tilezen
DEM data sources by zoom level. Source: Tilezen
zoomoceanlandGround resolution at 0°Ground resolution at 45°Ground resolution at 60°
0ETOPO1ETOPO1156543.0110692.678271.5
1ETOPO1ETOPO178271.555346.339135.8
2ETOPO1ETOPO139135.827673.219567.9
3ETOPO1ETOPO119567.913836.69783.9
4ETOPO1GMTED9783.96918.34892.0
5ETOPO1GMTED4892.03459.12446.0
6ETOPO1GMTED2446.01729.61223.0
7ETOPO1SRTM, NRCAN in Canada, with GMTED in high latitudes above 60°1223.0864.8611.5
8ETOPO1SRTM, NRCAN in Canada, with GMTED in high latitudes above 60°611.5432.4305.7
9ETOPO1SRTM, NRCAN in Canada, EUDEM in Europe, with GMTED in high latitudes above 60°305.7216.2152.9
10ETOPO1, NED Topobathy in CaliforniaSRTM, NED/3DEP, ArcticDEM, LINZ, Kartverket, etc.152.9108.176.4
11ETOPO1, NED Topobathy in CaliforniaSRTM, NED/3DEP, ArcticDEM, LINZ, Kartverket, etc.76.454.038.2
12ETOPO1, NED Topobathy in CaliforniaSRTM, NED/3DEP, ArcticDEM, LINZ, Kartverket, etc.38.227.019.1
13ETOPO1, NED Topobathy in CaliforniaSRTM, NED/3DEP, ArcticDEM, LINZ, Kartverket, etc.19.113.59.6

Terrarium DEM encoding is not the default encoding expected by MapLibre GL JS. When defining your source, you must explicitly set encoding: "terrarium". Failing to do so will result in incorrect elevation values.

In addition, set maxzoom to 13. This allows the rendering engine to oversample the DEM tiles when users zoom further (z14+), ensuring smooth terrain rendering.

"sources": {
"nimbo-terrain": {
"type": "raster-dem",
"tiles": [
"https://prod-data.nimbo.earth/tiles/terrarium/{z}/{x}/{y}.png?kermap_token=<YOUR_TOKEN>"
],
"tileSize": 256,
"encoding": "terrarium",
"maxzoom": 13
}
}