geoplot3 for subsurface lines
显示 更早的评论
Dear community,
I fing the geoglobe and geoplot3 functions reallly nice and powerful, yet I have been trying to plot a simple case without succeeding.
I want to plot lines that are located below the surface (underground tunnels, wells, etc.). Is there a workaround to play with the ground layer "transparency" to see those lines that are drawn efectively below, but hidden by the surface?
An extract of the code I'm using:
uif = uifigure;
lat=[43.93365285 43.94086810];
lon=[5.48483510 5.48376465];
alt=[483.591 499.640];
g = geoglobe(uif,'Basemap','satellite',"Terrain","gmted2010");
geoplot3(g,lat,lon,alt,'r',"LineWidth",2)
campos(g,43.912,5.465,700);
campitch(g,0)
camheading(g,20)
Thanks a lot in advance.
回答(1 个)
Binaya
2025-1-31
0 个投票
Hello Ignacio
To see the lines plotted under the surface layer, you can set "Terrain" as "none" in the "geoglobe" function. This should disable the terrain and you can visualize the plotted lines under the surface. You can also play around "campitch" and "camheading" to change camera positions for visualization.
Here are a few documentation links for your reference:
- "geoglobe": https://www.mathworks.com/help/map/ref/geoglobe.html
- "geoplot3": https://www.mathworks.com/help/map/ref/geoplot3.html
- Globe Projection: https://www.mathworks.com/help/map/globe-display.html?s_tid=CRUX_lftnav#:~:text=expand%20all-,Geographic%20Globe,-Globe%20Projection
Regards
类别
在 帮助中心 和 File Exchange 中查找有关 Earth and Planetary Science 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!