Attempting to read TIF file using the function 'readgeoraster' and get errors
显示 更早的评论
- I downloaded from Natural Earth » 1:10m Ocean Bottom - Free vector and raster map data at 1:10m, 1:50m, and 1:110m scales (naturalearthdata.com)
- 1:10m Ocean Bottom
- unzipped it produced a OB_LR.tif and OB_LR.tfw
- When I tried to load the TIF using:
[A,R] = readgeoraster("OB_LR.tif");
figure
mapshow(A,R)
I got the following error:
function mapshow expected input number 2, R, to be either a 3-by-2 referencing matrix or a scalar map raster reference object. Instead its type was: map.rasterref.GegraphicCellsReference.
What does this error mean and how do I read the OB_LR.tif file correctly?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Vector and Raster Map Display 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!