Activex google earth plugin and matlab

Hello.
I'm trying to open the google earth plugin from matlab, using an activex server because I want to use COM port, so I do this
gE = actxserver('GoogleEarth.ApplicationgE')
But the problem is that I'm not sure if with this command I create a conection with google earth server or with google eart API/plugin server. Being what I really want a conection with google earth api/plugin, how could I do that?
thank you,Javier

Réponses (3)

Oleg Komarov
Oleg Komarov le 22 Juil 2011

0 votes

5 commentaires

Javier
Javier le 22 Juil 2011
Thanks Oleg, I'm actually using that references, but I was wondering why I cannot use events and eventlistener related to the COM which I have created as the matlab helps says. Becuase of that I have got the doubt if I have connected to the plug in of google earth.
Regards, Javier
Oleg Komarov
Oleg Komarov le 22 Juil 2011
So what do you get when GE.IsInitialized or GE.IsOnline?
Javier
Javier le 24 Juil 2011
Hi Oleg, sorry for the late reply but I wasn't reported of your reply...
If I execute the function GEserver(ge_in) of the functions you sent me, I got "Startup successful", and google earths opens. So is the plugin running?
thanks
Oleg Komarov
Oleg Komarov le 24 Juil 2011
Yes it should be running, try one of the example to set the camera on some coordinates.
Javier
Javier le 24 Juil 2011
I can change the camera load,kmls files,and so on, but I cannot use event or eventlisten with this API?

Connectez-vous pour commenter.

Sven Koerner
Sven Koerner le 3 Août 2011

0 votes

1 commentaire

Javier
Javier le 4 Août 2011
Thank you, I'm going to try it, but is a way to get a kye to work locally??
Without having the key I've proved the function ge2ma_demo and I got this error:
??? Error using ==> load
Unable to read file ge_html.fig: No such file or directory.
Error in ==> hgload>localLoadFile at 177
AllVars = load(filename, '-mat');
Error in ==> hgload at 59
[FigVersion, FigData, VerNum] = localLoadFile(filename);
Error in ==> openfig at 72
[fig, savedvisible] = hgload(filename, struct('Visible','off'));
Error in ==> gui_mainfcn>local_openfig at 286
gui_hFigure = openfig(name, singleton, visible);
Error in ==> gui_mainfcn at 159
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt, gui_Visible);
Error in ==> ge_html at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==> ge2ma_demo at 29
ge_html;

Connectez-vous pour commenter.

Sven Koerner
Sven Koerner le 8 Août 2011

0 votes

I forgot the fig-file - sorry!!! But now it is also in the zip file, so that it should work!

Question posée :

le 22 Juil 2011

Community Treasure Hunt

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

Start Hunting!

Translated by