Skip to content
TerraTraceTerraTrace Open LiDAR · DTM

DEM1A,
Japan's 1 m laser terrain in open tiles.

Updated 1 November 2026

The sources at a glance ↓
Japan
Outlines: © OpenStreetMap contributors, ODbL 1.0; except Japan from the DEM1A coverage layer of the GSI on its mesh lines (出典:国土地理院, 1mメッシュDEM(航空レーザ測量)提供範囲を加工して作成, PDL1.0); simplified by TerraTrace
On this page07
  1. 01The sources at a glance
  2. 02Where to see it online
  3. 03Where to get it
  4. 04Reading the heights
  5. 05Hillshade
  6. 06What to expect
  7. 07Or let TerraTrace do it

The sources at a glance

Every dataset TerraTrace reads for this country, as the adapters recorded it when they were probed. Resolution is the publisher's pixel; for point clouds it is the 0.5 m grid TerraTrace builds from the ground points.

Japan (GSI DEM1A areas)1 m · Public Data License, version 1.0

Where to see it online

The publishers' own map viewers, free and without an account, where you can look at the terrain in a browser before downloading anything.

Where to get it

  • The GSI tile list, maps.gsi.go.jp/development/ichiran.html, entry 標高タイル(基盤地図情報数値標高モデル): the DEM1A tiles at https://cyberjapandata.gsi.go.jp/xyz/dem1a_png/{z}/{x}/{y}.png, zoom 1 to 17. Zoom 17 is the full 1 m detail; each lower zoom averages four pixels of the next.
  • The specification, maps.gsi.go.jp/development/demtile.html: the tiles share the tile and pixel numbering of the GSI map tiles (256 × 256 px, x to the east, y to the south).
  • The coverage: the layer 1mメッシュDEM(航空レーザ測量)提供範囲 in GSI Maps shows where DEM1A exists, on the lines of the national third-order mesh. A tile with no DEM1A pixel is simply not served: the request answers 404.
curl -O "https://cyberjapandata.gsi.go.jp/xyz/dem1a_png/17/114252/52062.png"

That is the zoom-17 tile over the round mound of Tsukuriyama Kofun in Okayama. At zoom 17 a pixel is 1.19 m of web mercator, about 0.98 m on the ground at the latitude of Osaka and 0.87 m in Hokkaido.

Reading the heights

  1. Take the pixel's colour as one 24-bit number: x = 2¹⁶R + 2⁸G + B.
  2. If x is below 2²³, the height is x × 0.01 m; above 2²³ it is negative, (x − 2²⁴) × 0.01 m.
  3. x = 2²³, the colour (128, 0, 0), means no data: the sea or a gap. Heights are above Tokyo Bay mean sea level, for the bare ground.

Hillshade

Decode the tile with the formula above, give it its web-mercator position and light it from the north-west like the first TerraTrace direction. The -s 0.82 turns mercator metres into ground metres at Okayama's latitude (the cosine of 34.7°):

python3 - <<'PY'
import numpy as np
from PIL import Image

rgb = np.asarray(Image.open("52062.png").convert("RGB")).astype(np.int64)
x = (rgb[..., 0] << 16) + (rgb[..., 1] << 8) + rgb[..., 2]
h = np.where(x < 2**23, x, x - 2**24) * 0.01   # metres
h[x == 2**23] = -9999                            # (128, 0, 0): no data
step = 2 * np.pi * 6378137 / 2**17 / 256          # one pixel in EPSG:3857 metres
west = -np.pi * 6378137 + 114252 * 256 * step
north = np.pi * 6378137 - 52062 * 256 * step
with open("tile.asc", "w") as f:
    f.write(f"ncols 256\nnrows 256\nxllcorner {west}\nyllcorner {north - 256 * step}\n")
    f.write(f"cellsize {step}\nNODATA_value -9999\n")
    np.savetxt(f, h, fmt="%.2f")
PY
gdal_translate -a_srs EPSG:3857 tile.asc tile.tif
gdaldem hillshade -az 315 -alt 25 -z 2 -s 0.82 tile.tif hillshade_315.tif

What to expect

  • A 1 m bare-ground model with trees and buildings removed: fine for the tiers and moats of kofun and the ditches of moated settlements.
  • Laser survey covers most plains, river basins, coasts and towns, and much of the mountains; elsewhere only the 5 m model exists (the Mozu kofun of Sakai, for one).
  • A whole area is many tiles: a square kilometre takes about 25 to 36 of them at zoom 17, so script the download and stitch them in QGIS or GDAL.