Fetch of NetworkLink Failed. Security violation.

52 views
Skip to first unread message

Usman_Rauf

unread,
Dec 28, 2006, 6:17:32 AM12/28/06
to KML Discussions
Hello !

I am using Google Earth pro. My requirement is to load the points data in realtime by using KML.

I am new to GE and after going through the examples, i am succeeded in loading multiple points through KML.

But when i try to update these points using <UPDATE> tag, i get the following error.

Fetch of NetworkLink "Update" failed (F:/GE Test/My Test/UpdateFile001.kml):
Security violation! Url F:/GE Test/UpdateFile001.kml cannot modify F:\GE Test\My Test\File.kml
Do you want to stop fetching, continue, or ignore fetch errors.

i have made 4 KML files.

1- originalKML.kml that is loading file.kml using <NetwordLink> from a local hard drive.
2- File.kml containing my desired points.
3- Update.kml that is loading UpdateFile001.kml using <NetworkLink> from a local hard drive.
4-UpdateFile001.kml containing updated longitude and latitude

I first run originalKML.kml and it successfully loads file.kml
but when i load update.kml to load UpdateFile001.kml, i get the error message shown above.

I have tried both absolute and relative paths in link elements.

The contents of the files are

==============================
1= originalKML.kml
==============================
<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<NetworkLink> <Link> <href>F:\GE Test\My Test\File.kml</href> </Link> </NetworkLink>
</Document>
</kml>

==============================
2- File.kml
==============================
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">

<Placemark>
<description>the heading</description>
<name>the original name</name>
<LookAt id="look1">
<longitude>73.037367</longitude>
<latitude>33.728837</latitude>
<range>500.656664107225</range>
<tilt>40.5575073395506</tilt>
<heading>-148.412292262804</heading>
</LookAt>
<visibility>1</visibility>
<Style>
<IconStyle>
<Icon>
<href>ico.png</href>
<x>96</x> <y>160</y> <w>32</w> <h>32</h>
</Icon>
</IconStyle>
</Style>
<Point>
<extrude>1</extrude>
<altitudeMode>relativeToGround</altitudeMode>
<coordinates>73.037367,33.728837,50</coordinates>
</Point>
</Placemark>

</kml>

==================================
3- Update.kml
=================================
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<NetworkLink>
<name>Update</name>
<Link> <href>F:\GE Test\My Test\UpdateFile001.kml</href> </Link></NetworkLink></kml>


=================================
4- UpdateFile001.kml
================================
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<NetworkLinkControl>
<Update>
<targetHref>F:\GE Test\My Test\File.kml</targetHref>
<Change>
<LookAt targetId="look1">
<longitude>73.437367</longitude>
<latitude>34.128837</latitude>
</LookAt>
</Change>
</Update>
</NetworkLinkControl>
</kml>

===============================================

I will be extremely thankful if anyone of you can guide me on this.
Anxiously waiting for your Reply

Usman Rauf
Reply all
Reply to author
Forward
0 new messages