Google earth

From DreamsteepWiki

Jump to: navigation, search

PYTHON AND GOOGLE EARTH VIA WIN32COM

MAKE A SCRIPT, MOVE A CAMERA

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( 44.031026, 123.05, 0.0, 1, 150.00011938469936, 70.000000000947935, -127.30257903894255, 100)
Personal tools