PngTile2Dem は、日本国内の様々な機関(国土地理院、産総研、林野庁、全国Q地図など)から提供されている 数値標高タイル を取得し、それらを統合・補完して高品質な GeoTIFF(DEM) を生成する QGIS プラグインです。
- ✔ マルチソース統合: 全国Q地図、産総研(0.5m/0.25mメッシュ)、林野庁(0.5mメッシュ)など最新のLiDAR成果に対応。
- ✔ インテリジェント合成: 選択した優先ソースにデータがない場合、自動的にQ地図や地理院10mメッシュで欠損を補完。
- ✔ 任意座標系出力: 平面直角座標系(JGD2011)など、解析に最適なCRSで直接保存。
- ✔ 高速処理: マルチスレッドによる並列ダウンロード。
- ZIP をダウンロード
- QGIS → プラグイン → プラグインの管理とインストール → ZIP からインストール
- ZIP を選択してインストール
- 処理ツールボックスの DEM Tools → PngTile2Dem に表示されます
- QGISのツールボックスから PngTile2Dem (Multi-Source Integrated) を起動。
- Extraction extent: 取得したい範囲をキャンバス上で指定。
- Primary DEM source: 最優先で使いたいデータ源を選択。
- Output CRS: 解析に使いたい座標系(例:EPSG:6677 等)を選択。
- 実行すると、タイルがダウンロード・合成され、GeoTIFFとしてプロジェクトに追加されます。
プラグインは以下を自動で実行:
- 必要なタイルのダウンロード
- VRT の作成
- 最終 CRS への Warp
- GeoTIFF の生成
- QGIS に自動追加
- 推奨最大範囲:30,000 タイル以下
詳細は LICENSE を参照してください。
本プラグインは、全国Q地図が国土地理院から以下のとおり測量法に基づく使用承認を得て、Q地図タイルや産総研および林野庁、自治体が公開している以下の標高データを元に、 タイルの取得・復号・再サンプリング・モザイク処理を行い、派生的な DEM を生成します。 指定した範囲の一部でタイルが存在しない場合には地理院タイル DEM5AやDEM5B、DEM5C、DEM10Bで補完されます。
本プラグインおよび生成される DEM は、 国土地理院コンテンツ利用規約( https://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html ) および Q地図タイルの利用方法 ( https://info.qchizu.xyz/qchizu/reprint/ ) に基づいて利用可能です。
タイル提供元:
基盤地図情報1mメッシュ【Q地図】
https://mapdata.qchizu.xyz/03_dem/52_gsi/all_2025/1_02/{Z_QMAP}/{x}/{y}.webp
宮城県0.5mメッシュ【林野庁】 https://forestgeo.info/opendata/4_miyagi/dem_2023/{z}/{x}/{y}.png
2021〜2022年栃木県0.5mメッシュ【産総研】 https://tiles.gsj.jp/tiles/elev/tochigi/{z}/{y}/{x}.png
2022〜2023年度東京都0.25mメッシュ【産総研】 https://tiles.gsj.jp/tiles/elev/tokyo/{z}/{y}/{x}.png
2019〜2022年度神奈川県0.5mメッシュ【産総研】 https://tiles.gsj.jp/tiles/elev/kanagawa/{z}/{y}/{x}.png
2021年富山県0.5mメッシュ【林野庁】 https://forestgeo.info/opendata/16_toyama/dem_2021/{z}/{x}/{y}.png
2024年石川県能登0.5mメッシュ【Q地図】 https://mapdata.qchizu2.xyz/03_dem/59_rinya/noto_2024/0pt5_01/{z}/{x}/{y}.png
2020年度石川県能登西部0.5mメッシュ【Q地図】 https://mapdata.qchizu.xyz/94dem/17p/ishikawa_f_02_g/{z}/{x}/{y}.png
2022年度石川県能登東部0.5mメッシュ【Q地図】 https://mapdata.qchizu.xyz/94dem/17p/ishikawa_f_01_g/{z}/{x}/{y}.png
2024年山梨県0.5mメッシュ【林野庁】 https://forestgeo.info/opendata/19_yamanashi/dem_2024/{z}/{x}/{y}.png
静岡県0.5mメッシュ【産総研】 https://tiles.gsj.jp/tiles/elev/shizuoka/{z}/{y}/{x}.png
滋賀県0.5mメッシュ【林野庁】 https://forestgeo.info/opendata/25_shiga/dem_2023/{z}/{x}/{y}.png
2019〜2023年京都府0.5mメッシュ【林野庁】 https://forestgeo.info/opendata/26_kyoto/dem_2024/{z}/{x}/{y}.png
2021〜2022年度兵庫県0.5mメッシュ【産総研】 https://tiles.gsj.jp/tiles/elev/hyogodem/{z}/{y}/{x}.png
2018〜2023年度鳥取県0.5mメッシュ【鳥取県】 https://rinya-tottori.geospatial.jp/tile/rinya/2024/gridPNG_tottori/{z}/{x}/{y}.png
岡山県0.5mメッシュ【林野庁】 https://forestgeo.info/opendata/33_okayama/dem_2024/{z}/{x}/{y}.png
2019年愛媛県0.5mメッシュ【林野庁】 https://forestgeo.info/opendata/38_ehime/dem_2019/{z}/{x}/{y}.png
2018年度高知県0.5mメッシュ【産総研】 https://tiles.gsj.jp/tiles/elev/kochi/{z}/{y}/{x}.png
DEM5A https://cyberjapandata.gsi.go.jp/xyz/dem5a_png/{z}/{x}/{y}.png
DEM5B https://cyberjapandata.gsi.go.jp/xyz/dem5b_png/{z}/{x}/{y}.png
DEM5C https://cyberjapandata.gsi.go.jp/xyz/dem5c_png/{z}/{x}/{y}.png
DEM10B https://cyberjapandata.gsi.go.jp/xyz/dem_png/{z}/{x}/{y}.png
本プラグインで生成される GeoTIFF DEM は、 国土地理院が提供する元データを加工・統合した **派生データ(非公式成果物)**です。
国土地理院が内容を保証するものではありません。
生成された DEM を再配布・公開する場合は、 以下のように元データの出典を明記してください:
例:「国土地理院、産総研、林野庁の標高データを加工して作成(PngTile2Demを使用)」
高解像度標高データの公開およびタイル化にご尽力いただいた関係機関の方々に敬意を表するとともに深く感謝申し上げます。
本プラグインおよびソースコードの作成・改良にあたっては、 OpenAI の ChatGPT を用い、アルゴリズム設計、デバッグ、 コード整理および README 文書作成の補助を受けました。
最終的な設計判断、検証、動作確認はすべて作者自身が行っています。
PngTile2Dem is a QGIS plugin designed to acquire Digital Elevation Model (DEM) tiles provided by various Japanese organizations (Geospatial Information Authority of Japan (GSI), AIST, Forestry Agency, Zenkoku Q Chizu, etc.). It integrates and interpolates these sources to generate high-quality GeoTIFF (DEM) files.
-
✔ Multi-Source Integration: Supports the latest LiDAR results, including Zenkoku Q Map, AIST (0.5m/0.25m mesh), and Forestry Agency (0.5m mesh).
-
✔ Intelligent Synthesis: Automatically fills data gaps using Q Map or GSI 10m mesh if the primary source is unavailable for a specific area.
-
✔ Custom Coordinate System Output: Save directly in the optimal CRS for your analysis, such as the Japanese Plane Rectangular Coordinate System (JGD2011).
-
✔ High-Speed Processing: Parallel downloads utilizing multi-threading.
- Download the ZIP file of this repository.
- Open QGIS → Plugins → Manage and Install Plugins → Install from ZIP.
- Select the ZIP file and install the plugin.
- The plugin appears under Processing Toolbox → DEM Tools → PngTile2Dem.
- Launch PngTile2Dem (Multi-Source Integrated) from the QGIS Toolbox.
- Extraction extent: Specify the target area on the map canvas.
- Primary DEM source: Select the data source you want to prioritize.
- Output CRS: Choose the coordinate system for your analysis (e.g., EPSG:6677).
- Run the process. The plugin will download, merge, and add the resulting GeoTIFF to your project.
The plugin automates the following steps:
- Downloading required tiles
- Creating a VRT (Virtual Raster)
- Warping to the final CRS
- Generating the GeoTIFF
- Automatically adding the layer to QGIS
Example: Running the plugin and displaying the generated DEM in QGIS.
- Recommended maximum area: ≤ ~30,000 tiles
(QGIS / GDAL performance may degrade beyond this)
See LICENSE for details.
This plugin generates derivative DEMs by retrieving, decoding, resampling, and mosaicing elevation data published by AIST, the Forestry Agency, and local governments. This is done based on the approval of the Geospatial Information Authority of Japan (GSI) obtained by "Zen-koku Q Chizu" (QMap) under the Survey Act. If tiles are missing in parts of the specified area, they are supplemented with GSI Tiles (DEM5A, DEM5B, DEM5C, or DEM10B).
This plugin and the generated DEMs can be used in accordance with the GSI Content Terms of Use (https://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html) and the QMap Tile Usage Policy (https://info.qchizu.xyz/qchizu/reprint/).
Tile Provider:
Q Chizu Tiles
https://mapdata.qchizu.xyz/03_dem/52_gsi/all_2025/1_02/{z}/{x}/{y}.webp
Miyagi Prefecture 0.5m Mesh 【Forestry Agency】 https://forestgeo.info/opendata/4_miyagi/dem_2023/{z}/{x}/{y}.png
2021-2022 Tochigi Prefecture 0.5m Mesh 【AIST】 https://tiles.gsj.jp/tiles/elev/tochigi/{z}/{y}/{x}.png
FY2022-2023 Tokyo 0.25m Mesh 【AIST】 https://tiles.gsj.jp/tiles/elev/tokyo/{z}/{y}/{x}.png
FY2019-2022 Kanagawa Prefecture 0.5m Mesh 【AIST】 https://tiles.gsj.jp/tiles/elev/kanagawa/{z}/{y}/{x}.png
2021 Toyama Prefecture 0.5m Mesh 【Forestry Agency】 https://forestgeo.info/opendata/16_toyama/dem_2021/{z}/{x}/{y}.png
2024 Ishikawa Prefecture Noto 0.5m Mesh 【Q Chizu】 https://mapdata.qchizu2.xyz/03_dem/59_rinya/noto_2024/0pt5_01/{z}/{x}/{y}.png
FY2020 Ishikawa Prefecture Noto Western 0.5m Mesh 【Q Chizu】 https://mapdata.qchizu.xyz/94dem/17p/ishikawa_f_02_g/{z}/{x}/{y}.png
FY2022 Ishikawa Prefecture Noto Eastern 0.5m Mesh 【Q Chizu】 https://mapdata.qchizu.xyz/94dem/17p/ishikawa_f_01_g/{z}/{x}/{y}.png
2024 Yamanashi Prefecture 0.5m Mesh 【Forestry Agency】 https://forestgeo.info/opendata/19_yamanashi/dem_2024/{z}/{x}/{y}.png
Shizuoka Prefecture 0.5m Mesh 【AIST】 https://tiles.gsj.jp/tiles/elev/shizuoka/{z}/{y}/{x}.png
Shiga Prefecture 0.5m Mesh 【Forestry Agency】 https://forestgeo.info/opendata/25_shiga/dem_2023/{z}/{x}/{y}.png
2019-2023 Kyoto Prefecture 0.5m Mesh 【Forestry Agency】 https://forestgeo.info/opendata/26_kyoto/dem_2024/{z}/{x}/{y}.png
FY2021-2022 Hyogo Prefecture 0.5m Mesh 【AIST】 https://tiles.gsj.jp/tiles/elev/hyogodem/{z}/{y}/{x}.png
FY2018-2023 Tottori Prefecture 0.5m Mesh 【Tottori Prefecture】 https://rinya-tottori.geospatial.jp/tile/rinya/2024/gridPNG_tottori/{z}/{x}/{y}.png
Okayama Prefecture 0.5m Mesh 【Forestry Agency】 https://forestgeo.info/opendata/33_okayama/dem_2024/{z}/{x}/{y}.png
2019 Ehime Prefecture 0.5m Mesh 【Forestry Agency】 https://forestgeo.info/opendata/38_ehime/dem_2019/{z}/{x}/{y}.png
FY2018 Kochi Prefecture 0.5m Mesh 【AIST】 https://tiles.gsj.jp/tiles/elev/kochi/{z}/{y}/{x}.png
DEM5A https://cyberjapandata.gsi.go.jp/xyz/dem5a_png/{z}/{x}/{y}.png
DEM5B https://cyberjapandata.gsi.go.jp/xyz/dem5b_png/{z}/{x}/{y}.png
DEM5C https://cyberjapandata.gsi.go.jp/xyz/dem5c_png/{z}/{x}/{y}.png
DEM10B https://cyberjapandata.gsi.go.jp/xyz/dem_png/{z}/{x}/{y}.png
The GeoTIFF DEMs generated by this plugin are derived data (unofficial products) created by processing and integrating the original data provided by the Geospatial Information Authority of Japan (GSI).
The Geospatial Information Authority of Japan does not guarantee its content.
When redistributing or publishing the generated DEM, please clearly state the source as follows:
“Created by processing Geospatial Information Authority of Japan digital elevation data (using PngTile2Dem processing)”
This plugin and its source code were developed and refined with the assistance of ChatGPT (OpenAI), which was used to support algorithm design, debugging, code refactoring, and documentation writing.
All final design decisions, testing, and validation were performed by the author.



