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

1 visualización (últimos 30 días)
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

Respuestas (1)

Paul
Paul el 24 de Jun. de 2016
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);

Categorías

Más información sobre Mapping Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by