How to plot points defined by latitude and longitude with Google earth toolbox

1 次查看(过去 30 天)
Hi,
I am trying to plot a points picked up by a gps-device. I have my variable with latitude and longitude and this is the code i have written
>> output = ge_plot(ChipLatLong(:,2), ChipLatLong(:,1));
>> ge_output('ChipLatLong.kml',output);
Where ChipLatLong(:,2) are the longitudes and ChipLatLong(:,1) are the latitudes. The problem i have is that when I open the kml file is zoomes in to the correct area (all the points lie within a 10 meter radius), however it doesn't show any of the specific points. What am I doing wrong?
Viktor

回答(1 个)

Paul
Paul 2016-6-24
This is old but the answer is to use ge_point or ge_point_new:
Z=30; %Some arbitrarily selected height
output = ge_point(ChipLatLong(:,2), ChipLatLong(:,1),Z);
ge_output('ChipLatLong.kml',output);

类别

Help CenterFile Exchange 中查找有关 Mapping Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by