首页 > 其他 > 详细

MATLAB绘制谷歌地图中的部分

时间:2020-07-09 19:59:12      阅读:107      评论:0      收藏:0      [点我收藏+]
9. Google Maps Static API

 
% Axis limits 
lms=[ -123-[14 8]/60  49+[10 13.5]/60 ];   

% plot_google_maps.m from the mathworks user contributed files database:
% https://www.mathworks.com/matlabcentral/fileexchange/27627-zoharby-plot_google_map
% accesses the static google maps map tiles, returning a lat/long gridded
% image that is just bigger than the given limits.
clf;
axis(lms);
[Glon,Glat,Gimg]=plot_google_map(‘maptype‘,‘satellite‘,‘refresh‘,0,‘autoaxis‘,0);
clf;

% Now draw it!
 
m_proj(‘utm‘,‘lat‘,lms(3:4),‘lon‘,lms(1:2));
m_image(Glon,Glat,Gimg); 
m_grid(‘tickdir‘,‘out‘,‘box‘,‘fancy‘);
m_ruler([.4 .9],1.05,6,‘tickdir‘,‘in‘,‘ticklen‘,.01);

 

MATLAB绘制谷歌地图中的部分

原文:https://www.cnblogs.com/ww-GRACE/p/13275476.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!