File Exchange

image thumbnail

Google Earth COM API (Example)

version (6.91 KB) by Gus Brown
Connect to the Google Earth COM API


Updated 27 May 2008

View License

Here are some functions that show how to connect to the Google Earth COM API from within Matlab.

This allows one to change camera views, add and control the display of KML features from within Matlab.

A few functions are given to show how one might use this COM API to control Google Earth.

Use ge=GEserver to start the Google Earth COM API server.

Cite As

Gus Brown (2021). Google Earth COM API (Example) (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (11)

Benjamin Levy

Very nice, useful. Any chance that it will render a jpeg file from GoogleEarth and save it in color?

Bruno Dias



Peter Steinberg

Very useful....Thanks for sharing!

Macarena Varela

I am also interested in knowing if there is a way of deleting a GE feature after being created. Thank you!!

Michael Jordan

Macarena Varela

Great job!!!

Macarena Varela

Renee Cammarere

I found these files to be extremely helpful. Especially GEcamera.m. I am attempting to place a Google Earth Active X object on a Matlab GUI and was wondering if anyone has had any experience with that. If someone could submit any sample code that deals with the GE Active X objects I would greatly appreciate it.

Brad Petersen

Very useful and well documented. Very straightforward to use. Is there a way to delete a GE feature once it has been created?

Sameh Abdelwahab

Thank you very much for this simple well documented project. It made it much easier than using the COM components directly. However, I faced some crashes in Google Earth. I don't know weather this was from GE itself or the matlab interface.

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!