MATLABの地図から位置情報を取得する方法

13 views (last 30 days)
Sakura
Sakura on 3 Dec 2021
Commented: Sakura on 6 Dec 2021
恐らく初歩的な質問だと思いますが、調べても分からないことがあったので、教えていただきたいです。
webmapを使って、予め分かっている緯度経度を地図上にプロットする方法は分かっているのですが、地図上から位置を1つ選択し緯度経度を取得する方法を教えてください。また、その位置の標高を取得する方法があれば教えてください。
現在、webmapは国土地理院のを利用しています。→ webmap('KokudoMap (KokudoMap)')
よろしくお願いいたします。

Answers (1)

Atsushi Ueno
Atsushi Ueno on 3 Dec 2021
ググったらimputm関数のドキュメントが出てきました。
でも、Mapping Toolboxが無く、ここのLive Scriptでも動かせないです(泣)
webmap
Error using map.webmap.Canvas
This functionality is not available on remote platforms.

Error in webmap (line 155)
wm = map.webmap.Canvas();
[lat, lon] = inputm
  1 Comment
Sakura
Sakura on 6 Dec 2021
教えてくださって、ありがとうございます!
webmapではなく、figure上なら動くようです。(以下のようなエラーがありました。)
No axes in current figure
もう少し調べてみます。。

Sign in to comment.

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!