Executing KML file on Google Earth Desktop - Ubuntu

316 views
Skip to first unread message

mleteff

unread,
Sep 14, 2012, 4:37:27 PM9/14/12
to liquid...@googlegroups.com

I need to see if anybody has come across a similar issue. I am attempting to execute a KML file using Google Earth Desktop and Java. The operating system being used is Ubuntu 12.xx.

Problem
I am able to build a KML file and execute it using a Google Earth instance. The data displays fine on the first run.  If I need to execute another KML, a second Google Earth instance will load up displaying the new KML data. The first instance would still display the initial KML file. This situation keeps repeating for each KML file sent to Google Earth.


What I am trying to use
I am using Java's Runtime class to execute the KML file on Google Earth.
Runtime.getRuntime().exec(new String[] {...

------------------


Piping Approach
I created a test KML file containing random placemarks and tried various piping approaches to send the data to Google Earth, but was unsuccessful. I used the same piping approaches by sending the contents of the KML file to GEdit, and the text displayed in the editor correctly.

Piping Attempt Results
Google Earth loads up...

1. A message would mention that the KML file could not be read. I confirmed that the KML file was created correctly by right clicking on the file and opening it with Google Earth directly. The KML displayed right.

2. Would experience the same issue as the Java Runtime problem previously mentioned.

------------------

Research To Resolve Issue
I noticed that Ubuntu tends to lock the Google Earth instance when it is being used. I removed the lock and still experienced the same problem. Also, I tried the same approaches as an admin, but Google Earth kept opening another instance for each KML used.

------------------

Goal
I need to be able to send 'x' amount of KML files to Google Earth using the same instance.

------------------

Just in case fyi…

The Google Earth plugin is not available for Ubuntu. :-(

------------------


Any assistance would be greatly appreciated.

If you have any questions, please let me know.

Thanks in advance.

mleteff

Andrew Leahy

unread,
Sep 14, 2012, 11:27:04 PM9/14/12
to liquid...@googlegroups.com
Hi Matthew, btw this isn't related to Liquid Galaxy - you should try a more KML/Google Earth related list.

Anyhow, have you investigated using KMLNetworkLink instead of pipes/reloads of KML files?

KMLNetworkLink allows Earth to requests updates to a KML doco on a timed or event basis.
The KML has to be delivered to Earth over HTTP/S.

It's part of the spec and will work for all platforms. So if you get this working for your Ubuntu desktop it'll work for everyone else as well.

Andrew
eResearch / UWS

mleteff

unread,
Sep 15, 2012, 1:22:06 AM9/15/12
to liquid...@googlegroups.com



Hi Andrew. I appreciate the response. The project I am working on will be utilized on a Liquid Galaxy system.  The answer to your question regarding KMLNetworkLink is yes. I have ran some tests using the timed link approach, but I was not completely sold on it. Like you I am concerned with potential synch issues across the system. Please see the following post for more information.

Any way to synchronize KML refreshInterval across LiquidGalaxy Google Earths?
https://groups.google.com/forum/#!topic/liquid-galaxy/mebpNf3pEtY


Was this issue resolved?


Thanks guy.

mleteff

Andrew Leahy

unread,
Sep 15, 2012, 5:18:24 AM9/15/12
to liquid...@googlegroups.com
Hi Matthew,

I believe the problem of synchronizing the KML refreshes between Earth Clients still exists.

Where higher-time-resolution synchronization of KML models and other content is required we've moved to using Earth API (plugin) and websockets. This has also meant, for the moment, switching to a Windows platform for Liquid Galaxy. You win, you lose!

Personally, I'd focus on working with Earth API + KML and not bang my head too hard against the Earth Client.

Cheers, Andrew
eResearch / UWS
Reply all
Reply to author
Forward
0 new messages