Remove custom terrain data
Display a line from the surface of Gross Reservoir to a point above South Boulder Peak using custom terrain.
First, add terrain for an area around South Boulder Peak by calling
addCustomTerrain and specifying a DTED file. Name the
Create a geographic globe. Specify the terrain by name, using the
'Terrain' argument of the
function. Preserve the terrain after plotting by calling the
hold function. Then, plot the line. Tilt the view by
holding Ctrl and
uif = uifigure; g = geoglobe(uif,'Terrain','southboulderpeak'); hold(g,'on') lat = [39.95384 39.95]; lon = [-105.29916 -105.3608]; hTerrain = [10 0]; geoplot3(g,lat,lon,hTerrain,'y','HeightReference','Terrain', ... 'LineWidth',3)
Close the geographic globe and remove the custom terrain.
The DTED data used in this example is courtesy of the US Geological Survey.