Results 1 to 4 of 4

Thread: network link and groundoverlay in a local file

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    3

    Default network link and groundoverlay in a local file

    Hi everyone,

    I am new in gearth. I am trying to launch GEarth with a file containing this code:
    <?xml version="1.0" encoding="UTF-8"?>

    <kml>
    <Folder>
    <name>Mapa de Cabo Ajo a Cabo Higuer</name>
    <GroundOverlay>
    <name>Carta 128: de Cabo Ajo a Cabo Higuer</name>
    <visibility>1</visibility>
    <Icon>
    <href>CaboAjo.jpg</href>
    <viewBoundScale>0.75</viewBoundScale>
    </Icon>
    <LatLonBox>
    <north>43.91575</north>
    <south>42.8828</south>
    <east>-1.685</east>
    <west>-3.73075</west>
    </LatLonBox>
    </GroundOverlay>
    </Folder>
    <NetworkLink>
    <Link>
    <href>ELINK</href>
    </Link>
    </NetworkLink>
    </kml>

    ELINK: is a http link to a java aplication where a KML generator is running and working properly.

    The problem is that if I run GEarth with this kml file, I can only see the folders and lays generated by the java application but I cannot see the jpg file I want to use as ground overlay.
    I have tried to extract the NetworkLink part and execute it in a different file. Then, one file loads the jpg and the other one adds a network link to the GEarth, but I don┤t know why, when I fetch all the code in a single file, I can only get the ELINK working.

    Thanks in advance.

  2. #2

    Default

    At quick glance code looks ok. Try creating the Ground Overlay code with GE (Add|Image Overlay). Then Save As KML. That way you will be starting with good code. Modify from there.

    Matt
    Matt Fox

  3. #3
    Junior Member
    Join Date
    Oct 2009
    Posts
    3

    Default

    Thanks, I┤ll try it.

  4. #4
    Junior Member
    Join Date
    Oct 2009
    Posts
    3

    Default

    Thanks for the help. A small detail fixed. Folder must be closed after the Networklink and not before.

    </NetworkLink>
    </Folder>
    </kml>

    Thanks again.

Posting Permissions

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