Results 1 to 2 of 2

Thread: trouble pulling data from KML file over network link

  1. #1
    Junior Member
    Join Date
    Nov 2005
    Posts
    2

    Default trouble pulling data from KML file over network link

    I have a KML file that I am going to be perpetually modifying (I know
    that the refresh rate can only be 1/second, but I'm not worried about
    that). I want GE to be pulling the data as fast as it can and then
    adjust the lat/lon, range and tilt of the current view based on the KML
    file.

    Is this possible? I'm sort of stuck. I created a test KML file:

    <?xml version="1.0" encoding="UTF-8"?>
    <kml xmlns="http://earth.google.com/kml/2.0">
    <NetworkLink>
    <flyToView>1</flyToView>
    <longitude>-90.86879895745898</longitude>
    <latitude>48.25329705085941</latitude>
    <range>738.6083569292965</range>
    <tilt>8.394733471860304</tilt>
    <heading>2.701081133141738</heading>
    </NetworkLink>
    </kml>

    ...and opened a new network link in GE to this file. I guess I
    was expecting GE to fly to this coordinate. But nothing happened. I
    also tried this file:

    <?xml version="1.0" encoding="UTF-8"?>
    <kml xmlns="http://earth.google.com/kml/2.0">
    <LookAt>
    <longitude>-90.86879895745898</longitude>
    <latitude>48.25329705085941</latitude>
    <range>738.6083569292965</range>
    <tilt>8.394733471860304</tilt>
    <heading>2.701081133141738</heading>
    </LookAt>
    </kml>

    Again, nothing. What am I doing wrong? I'm a student trying to pull
    this off as a final project. It's okay if it's impractical...I'm just
    trying to learn a few things and prove a concept.

    thanks for any hints,
    Matt

  2. #2
    Junior Member
    Join Date
    Aug 2005
    Posts
    20

    Default

    Just a guess (no time to try), but according to the kml docs, <flyToView> changes to that view when the network link is refreshed. But you didn't specify any refresh parameters, so maybe that never happens. Try adding <refreshMode>, <refreshInterval> or something like that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •