chiropterist / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

Programmatically refresh Google Earth 5 Network Links once they are deemed broken #254

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
----------------------------------------------------------------------
Which products are relevant to this feature request?
----------------------------------------------------------------------
Google Earth 5

----------------------------------------------------------------------
What should this feature enhancement do?
----------------------------------------------------------------------
Case: In Google Earth 5, under the Myplaces folder, I created a Network
Link which is on a 1-second refresh timer. The Network Link points to a KML
file that is continually being updated via an external program. At
some point, there is a (race) condition which causes Google Earth 5 to
error on opening the KML file. I'm guessing Google Earth does a Network
Link refresh at the wrong time.

At this point, no matter how many times I programmatically write to
the KML file, Google Earth will not deem its parent Network Link as
'good', until I manually refresh the Network Link in Google Earth.
Does Google Earth have a workaround for this? It would be nice to
programmatically be able to refresh the Network Link. Or if Google Earth
doesn't deem a Network Link dead after one unsuccessful parsing error.

----------------------------------------------------------------------
Are there any currently known workarounds that produce the same, or
similar, result?
----------------------------------------------------------------------
When the external program is creating the KML file, if I change to a
greater update interval, the error condition is less likely. However,
Google Earth still eventually seems to get into this state.

Original issue reported on code.google.com by spja...@gmail.com on 27 Feb 2009 at 7:34

GoogleCodeExporter commented 9 years ago
Right now, this seems like a file contention issue. Google Earth will refresh 
badly
parsed KML files, however, if it cannot gain read access to a Network Link 
file, it
will stop retrieving that file.

Hence, the Network Link will be deemed dead.

Original comment by spja...@gmail.com on 12 May 2009 at 6:20