[英]Using Matlab Google-Earth Toolbox to plot Latitude and Longitude
I am trying to plot some waypoints using the Google-Earth toolbox . 我正在尝试使用Google-Earth工具箱绘制一些航路点。 The documentation for it is pretty poor, so I figured this would be a good Stack Overflow question.
它的文档相当差,所以我认为这将是一个很好的Stack Overflow问题。
I have a matrix, wypts
that has pairs of latitude and longitude coordinates in decimal format (If anyone is wondering this over the State College Airport (SCE) in Pennsylvania). 我有一个矩阵,
wypts
有十进制格式的纬度和经度坐标对(如果有人想在宾夕法尼亚州的州立大学机场(SCE))。
wypts =
40.8489 -77.8492
40.8922 -77.8492
40.9355 -77.8492
40.9788 -77.8492
41.0221 -77.8492
41.0654 -77.8492
41.1087 -77.8492
41.1154 -77.8492
The following does not work instead of plotting points in Pennsylvania, it plots nothing in the off the south pole: 以下不起作用,而不是在宾夕法尼亚州绘制点,它在南极之外没有绘制任何东西:
output = ge_plot(wypts(:,1),wypts(:,2))
ge_output('wypts.kml',output)
You have your latitudes and longitudes mixed up. 你的纬度和经度混在一起。 The help documentation for
ge_plot
says that the first input should be longitude, and the second input should be latitude. ge_plot
的帮助文档说第一个输入应该是经度,第二个输入应该是纬度。 Try this: 试试这个:
output = ge_plot(wypts(:,2),wypts(:,1));
ge_output('wypts.kml',output);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.