GeoDataViewer
Menu
Launch Studio
Theme

AWS Elevation Tiles Download — Terrarium DEM for MapLibre

Quick answer: AWS terrain tiles store elevation in the colours of a PNG. Use the Terrarium endpoint as a raster-dem source for relief or hillshade; displaying it as an ordinary image shows encoded pixels, not a shaded map.

Format Raster-dem tiles (Terrarium)
Coverage Global
Resolution Up to zoom 15 (~12m at equator in some regions)
License Source-dependent attribution — see Tilezen
Update Static archive (Mapzen/AWS processed)

Choose between an elevation lookup and terrain tiles

  1. 1.For the estimated height of a point, use the elevation finder below. For a web map, use the Terrarium URL template in the download guide.
  2. 2.Replace z, x and y with tile coordinates when fetching an individual PNG. The template itself is not a downloadable regional DEM.
  3. 3.Use Terrarium decoding for these tiles. For an analysis-ready area rather than a web-map tile, choose a DEM dataset and check its resolution, vertical reference and source attribution.

Terrarium tile URL template

https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png

Configure the map source as raster-dem with encoding: terrarium. Read the source attribution linked in the download options.

Format

Raster-dem tiles (Terrarium)

Geometry

Raster DEM tiles

Coverage

Global

Resolution

Up to zoom 15 (~12m at equator in some regions)

About this dataset

Free Terrarium-encoded global terrain tiles served from AWS S3 Open Data, directly usable in MapLibre as a raster-dem source with no API key.

AWS hosts a freely accessible set of Terrarium-encoded terrain elevation tiles derived from Mapzen / AWS elevation data on their Open Data program. The tiles are available as a static S3 bucket with standard z/x/y URLs and no authentication required. This is a pure open-data endpoint ideal for MapLibre raster-dem sources.

AWS Elevation Tiles Download — Terrarium DEM for MapLibre: dataset download instructions

Download steps from this dataset’s GeoDataViewer guide. Follow the original provider for current files and access requirements.

Free MapLibre 3D terrain Open-data terrain layers Hillshade in web maps

How to download

  1. 1 Use the S3 tile URL template directly: https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png
  2. 2 In a MapLibre style, name the source dem and set its type to 'raster-dem', tiles to an array containing the template, tileSize to 256, and encoding to 'terrarium'. The tiles field takes the PNG template; the url field expects TileJSON metadata.
  3. 3 Set the style’s terrain source to dem, then tilt the map over a mountain range. If you see coloured squares instead of relief, check that you did not add the PNG as an ordinary raster layer.

FAQ

Is the AWS elevation tile service reliable for production?

The S3 bucket is part of AWS Open Data and has no SLA or guaranteed uptime, but it has been stable for years. For mission-critical production, consider MapTiler or Stadia Maps for CDN-backed SLAs.

What is the origin of AWS elevation tile data?

The data was originally processed by Mapzen from multiple sources including SRTM, GMTED, and NED. AWS now hosts these tiles as part of their Open Data program.

What encoding do the AWS tiles use?

For the Terrarium PNG, elevation in metres is (red × 256 + green + blue / 256) − 32768. RGB(128, 0, 0) decodes to 0 m; RGB(128, 100, 0) to 100 m. Applying a Mapbox Terrain-RGB decoder to these same pixels gives incorrect heights.