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

1 vue (au cours des 30 derniers jours)
Viktor
Viktor le 19 Juil 2012
Réponse apportée : Paul le 24 Juin 2016
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

Réponses (1)

Paul
Paul le 24 Juin 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);

Catégories

En savoir plus sur Mapping Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by