Filter löschen
Filter löschen

Get data from basemap 'topographic'

4 Ansichten (letzte 30 Tage)
Gamliel Roos
Gamliel Roos am 23 Feb. 2020
Kommentiert: Gamliel Roos am 26 Feb. 2020
Hi i have two question:
1) I want to use the matlab basemap 'topographic' and plot on it a rectangle how can i do this?
2) how can i know the elevation of a point on the basemap if i know the longitude and latitude of the point?
THANKS

Akzeptierte Antwort

Devineni Aslesha
Devineni Aslesha am 26 Feb. 2020
1. In order to plot a rectangle on the matlab basemap ‘topographic’, use the below code.
xRec = [44.56 44.51 44.51 44.56 44.56];
yRec = [-72.73 -72.73 -72.63 -72.63 -72.73];
geoplot(xRec, yRec,'r','LineWidth',5);
geobasemap('landcover') % Here, ‘landcover’ is the basemap
For more information, refer the following link:
2. To know the elevation of a point on the basemap, you can refer to "getElevations” which is one of the several submissions in MATLAB File Exchange on MATLAB Central which is a forum for our product users to interact, exchange information and knowledge, without MathWorks' involvement.
Feel free to contact the author of this submission directly for specific questions about the implementation.

Weitere Antworten (0)

Kategorien

Mehr zu Geographic Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by