DEM2GeoTIFF_Convert

Version 1.0.3 (2.17 MB) by Hernia Baby
本件は国土地理院の数値標高モデルからDEMデータを取得し、それを1枚のGeoTiff画像に変換する物です。 EPSGコードなどが違うので他国のデータに応用する場合は注意が必要となります。
11 Downloads
Updated 6 Jan 2024

File Exchangeと連携しました。

View DEM2GeoTIFF_Convert on File Exchange

MATLABによる標高データ活用

はじめに

本件は国土地理院の数値標高モデルからDEMデータを取得し、それを1枚のGeoTiff画像に変換する物です。

EPSGコードなどが違うので他国のデータに応用する場合は注意が必要となります。

概要と必要なToolbox

DEMデータをGeoTiffに変換する

ここではDEMデータ(3次メッシュ情報)を1枚ずつGeoTiff変換しています。

image_0.png

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コード等の調整が必要です。

image_1.png

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をつけているため並列計算しておらず挙動は遅いので要注意です。

image_2.png

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 (2024). 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 Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
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.