DEM2GeoTIFF_Convert
Version 1.0.3 (2.17 MB) by
Hernia Baby
本件は国土地理院の数値標高モデルからDEMデータを取得し、それを1枚のGeoTiff画像に変換する物です。 EPSGコードなどが違うので他国のデータに応用する場合は注意が必要となります。
File Exchangeと連携しました。
MATLABによる標高データ活用
はじめに
本件は国土地理院の数値標高モデルからDEMデータを取得し、それを1枚のGeoTiff画像に変換する物です。
EPSGコードなどが違うので他国のデータに応用する場合は注意が必要となります。
概要と必要なToolbox
DEMデータをGeoTiffに変換する
ここではDEMデータ(3次メッシュ情報)を1枚ずつGeoTiff変換しています。
GeoTIFF_Convert.mlx
[~, pList] = matlab.codetools.requiredFilesAndProducts('GeoTIFF_Convert.mlx');
Tbox = string({pList.Name}');
Certain = cell2mat({pList.Certain}');
disp(Tbox(Certain)) "MATLAB"
"Mapping Toolbox"
"Parallel Computing Toolbox"
個々のGeoTiffファイル群を1枚に結合する
3次メッシュを2次メッシュとして1枚のGeoTiffファイルに結合するものです。
ここでも他国のデータを使うときはEPSGコード等の調整が必要です。
GeoTIFF_Merge.mlx
[~, pList] = matlab.codetools.requiredFilesAndProducts('GeoTIFF_Merge.mlx');
Tbox = string({pList.Name}');
Certain = cell2mat({pList.Certain}');
disp(Tbox(Certain)) "MATLAB"
"Mapping Toolbox"
アプリ
上記2つを組み合わせてアプリ化したものです。
waitbarをつけているため並列計算しておらず挙動は遅いので要注意です。
GeoTiff.mlapp
[~, pList] = matlab.codetools.requiredFilesAndProducts('GeoTiff.mlapp');
Tbox = string({pList.Name}');
Certain = cell2mat({pList.Certain}');
disp(Tbox(Certain)) "MATLAB"
"Mapping Toolbox"
そのほか
mdファイル作成は以下のコードを使っています。
% export("README.mlx","README.md",EmbedImages=false, FigureFormat='png', Run=true);Cite As
Hernia Baby (2026). DEM2GeoTIFF_Convert (https://github.com/HerniaBaby/DEM2GeoTIFF_Convert/releases/tag/v1.0.3), GitHub. Retrieved .
MATLAB Release Compatibility
Created with
R2023b
Compatible with R2023b and later releases
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.3 | See release notes for this release on GitHub: https://github.com/HerniaBaby/DEM2GeoTIFF_Convert/releases/tag/v1.0.3 |
||
| 1.0.0 |
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.



