Create a mbtiles file from JAXA aw3d30 elevation images

by Andrew Calcutt last modified 2021-03-21T12:21:12+00:00


How to build the map


1.) From Jaxa, "To download the data files, you are kindly requested to make your account in the AW3D30 homepage." Go to and register for an account.

2.) Download every zip you would like to make from . I did this in a low tech way. I got the url for each square. each square has a xml file that contains the downloads, which is in similar format to the of the square url. with some string replacement to get the xml from the url. then I downloaded all the xml files and merged them into one big file. i then used a webside that would strip urls from text (very low tech)

3.) Extract all the zip files and copy all the _DSM.tif files into a directory

4.) Use gdal to create a mbtiles file from all the images

gdalbuildvrt -overwrite -srcnodata -9999 -vrtnodata -9999 ${vrtfile} ${INPUT_DIR}/*_DSM.tif

gdal_translate ${vrtfile} ${mbtilesfile} -of MBTILES

gdaladdo ${mbtilesfile} 2 4 8 16 32 64 128 256 512 1024

Document Actions