- 积分
- 170
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2018-10-13
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
m_proj('mercator','lat',[-75 75],'lon',[0 360]);
m_coast('patch',[.7 1 .7],'edgecolor','none');
m_grid('box','fancy','linestyle','none','backcolor',[.9 .99 1]);
cities={'Qingdao','Edmonton'};
lons=[ 120 257 ];
lats=[ 36 53];
[range,ln,lt]=m_lldist([lons(1) lons(2)],[lats(1) lats(2)],40);
m_line(ln,lt,'color','r','linewi',2);
m_text(ln(1),lt(1),sprintf('%s - %d km',cities{1},round(range)));
title('Great Circle Routes','fontsize',14,'fontweight','bold');
这实际上是mmap手册上的例子,但是我取了经度0-360,图就出了问题,跨不过180E这条线,非常奇怪,不明白为什么。
|
|