Surprisingly Google Earth has an ActiveX interface, and so LabVIEW can communicate with it. The TerraVIEW program looks like it should work well. However at the moment I am in the process of trying to get some simple VIs written to communicate with Google Earth.
I have so far managed to get the application open, bring back its version information, the Streaming percentage and the longitude/latitude from the camera focus, not where a user has clicked.
I will keep working on this and try and get some more functionality built up, but there are a lot of different interfaces and i'm not sure where to begin.
I am searching for documentation on the ActiveX interface at the moment.
Here is what I have. As I could not find any documentation on the ActiveX interface, I did not realise there are two interface to Google Earth.
EARTHLib.IApplicationGE and EARTHLib.IKHInterface, I had created up most the VIs needed for the Application interface when I found that the KH interface worked for view position rather than Camera position in the app interface.
So I then went and modified my original VIs to use the KH interface.
Attached below are the LLBs I created for each interface, both are in version 8 format.
I hope this helps you and the example in each LLB shows you how to use the interface.
I was wondering what version of Google Earth you are using for this. When I try to access the Active X control it does not show up in the browse list. I am just using the free version as this is a side project for my work. It's a nice to have but not necessary.
I am using Google Earth Free 4.0.2091 (Beta) for Windows.
You might want to open "Google Earth - initialise.vi" (inside the LLB). and make sure there is no broken run arrow. If there is on the Front Panel right-click "EARTHLib.IKHInterface" click on "Select ActiveX Class" Browse. In the drop down list that appears in the dialog box, find an entry starting with "Earth" select it, and then click on "IKHInterface"
To make sure we relink to the interface.
Looking at the naming of the type library for this interface, it might be that Google Earth 4 is the first version with an ActiveX interface.
I had found some information about the interface and it is a COM API. The problem I had was that the server was not started. When I ran Google Earth with /RegServer option the KH vi's worked. The application series of VI's still do not work though. Here is the link for the documention I found. It seems to have basic controls but no way to plot a path or use the ruler. At least that I can see.