Error Reading a DEM file using "gtopo30" function of the Mapping Toolbox
5 views (last 30 days)
Show older comments
MathWorks Support Team
on 1 Sep 2017
Edited: MathWorks Support Team
on 22 Feb 2021
I am running into an error while reading a DEM file with "W140N40" tile using "gtopo30" function of the Mapping Toolbox. The region tile is for Southern California.
Accepted Answer
MathWorks Support Team
on 22 Feb 2021
Edited: MathWorks Support Team
on 22 Feb 2021
Start by downloading the "W140N40" tile from here:
Note: This is an archived version.
Note: Make sure to download "w140n40.hdr.zip" and "w140n40.dmw.zip" and place the extracted HDR and DEM in your MATLAB current folder.
Execute the below commands to get the map of the region:
[Z,refvec] = gtopo30('W140N40',1,[34 36],[-120 -118]);
figure
usamap(Z,refvec);
geoshow(Z,refvec,'DisplayType','surface');
demcmap(Z);
0 Comments
More Answers (0)
See Also
Categories
Find more on Specific Vector and Gridded Data Products in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!