Help with google earth api and matlab

  • Follow


Hello!
I'm doing a matlab function which control google earth through google api. I get the conexion with the server(becaus I can control the position,camera...) but I want to use the method ShowDescriptionBalloon, and I don't know how.
I've tried :

gE = actxserver ('googleearth.ApplicationGE');
gE.ShowDescriptionBalloon()

but I get this error:
No method 'ShowDescriptionBalloon' with matching signature found for class 'COM.googleearth_ApplicationGE'.

How can I use the method??

thanks!
0
Reply Javier 1/26/2011 5:24:04 PM


"Javier " <Tempux@hotmail.com> wrote in message 
news:ihplbk$ra5$1@fred.mathworks.com...
> Hello!
> I'm doing a matlab function which control google earth through google api. 
> I get the conexion with the server(becaus I can control the 
> position,camera...) but I want to use the method ShowDescriptionBalloon, 
> and I don't know how.
> I've tried :
>
> gE = actxserver ('googleearth.ApplicationGE');
> gE.ShowDescriptionBalloon()
>
> but I get this error:
> No method 'ShowDescriptionBalloon' with matching signature found for class 
> 'COM.googleearth_ApplicationGE'.

I believe that's correct; if this is class you're using:

http://earth.google.com/comapi/interfaceIApplicationGE.html

it does not have a public member function named ShowDescriptionBalloon that 
accepts 0 inputs.  You need to pass as input to this method the feature for 
which you want to show the description.  [I haven't used this COM API before 
so I do not have any examples to show you nor do I know specifically how to 
create such a feature object.]

-- 
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on 
http://www.mathworks.com 

0
Reply Steven_Lord 1/26/2011 5:57:02 PM


"Steven_Lord" <slord@mathworks.com> wrote in message <ihpn9e$a4$1@fred.mathworks.com>...
> 
> 
> "Javier " <Tempux@hotmail.com> wrote in message 
> news:ihplbk$ra5$1@fred.mathworks.com...
> > Hello!
> > I'm doing a matlab function which control google earth through google api. 
> > I get the conexion with the server(becaus I can control the 
> > position,camera...) but I want to use the method ShowDescriptionBalloon, 
> > and I don't know how.
> > I've tried :
> >
> > gE = actxserver ('googleearth.ApplicationGE');
> > gE.ShowDescriptionBalloon()
> >
> > but I get this error:
> > No method 'ShowDescriptionBalloon' with matching signature found for class 
> > 'COM.googleearth_ApplicationGE'.
> 
> I believe that's correct; if this is class you're using:
> 
> http://earth.google.com/comapi/interfaceIApplicationGE.html
> 
> it does not have a public member function named ShowDescriptionBalloon that 
> accepts 0 inputs.  You need to pass as input to this method the feature for 
> which you want to show the description.  [I haven't used this COM API before 
> so I do not have any examples to show you nor do I know specifically how to 
> create such a feature object.]
> 
> -- 
> Steve Lord
> slord@mathworks.com
> To contact Technical Support use the Contact Us link on 
> http://www.mathworks.com 

Thank you for replying.
That is other other problem I've got,I have tried to create a feature object like this
gE2 = actxserver('googleearth.FeatureGE');
And appearly the object is created,but then I can not modify or use it...
0
Reply Javier 1/26/2011 6:24:04 PM

2 Replies
548 Views

(page loaded in 0.028 seconds)

Similiar Articles:













7/21/2012 8:51:26 PM


Reply: