Sunday, April 15, 2007

Google Earth Community: COM API (beta! beta! beta!)

Google Earth Community: COM API (beta! beta! beta!):
lots of clues here...

"This is how to control Google Earth from Python:
Code:


import win32com.client

googleEarth = win32com.client.Dispatch('GoogleEarth.ApplicationGE')
while not googleEarth.IsInitialized():
print 'waiting for Google Earth to initialize'

#googleEarth.OpenKmlFile('test.kml')
googleEarth.SetCameraParams( 41.487942634608913, -81.686570904088171, 0.0, 1, 150.00011938469936, 70.000000000947935, -127.30257903894255, 100)
"