Update with different source and update network locations
1 view
Skip to first unread message
phelpsw
unread,
May 30, 2008, 12:08:52 AM5/30/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to KML Developer Support - KML Server Side Scripting
I have gone through the Update tutorial and after struggling through
discovered an undocumented limitation of Update. This example is
based off the update tutorial: http://code.google.com/apis/kml/documentation/updates.html To recreate the problem try the following combination of files:
point_load.kml: (Exactly the same as Point-load.kml from tutorial)
The example works as expected...Why do these urls need to be seemingly
coming from the same server? Is there a way around this? I wish to
use update to modify a kml document originating from another server.
Thanks.
phelpsw
unread,
May 30, 2008, 2:10:56 AM5/30/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to KML Developer Support - KML Server Side Scripting
Might it be possible to embed the NetworkLinkControl in the
Point_load.kml document? After looking through the documentation I
see no reason this shouldn't work...though in trying it...clearly
things aren't so simple.
Is this 4 document update file structure really necessary? Where is
this documented? What is the reason for this limitation? Thank you.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <kml xmlns="http://earth.google.com/kml/2.1">
> <NetworkLinkControl>
> <Update>
> <targetHref>http://code.google.com/apis/kml/documentation/ > Point.kml</targetHref>
> <Change>
> <Placemark targetId="pm123">
> <name>Name changed by Update Change</name>
> <!-- coordinates remain the same -->
> </Placemark>
> </Change>
> </Update>
> </NetworkLinkControl>
> </kml>
>
> This combination of files crashes Google Earth with no error message
> displayed. It appears the use of two different urls,http://code.google.com
> for the source andhttp://williamslabs.comfor the update causes this
> to break. When I host Point.kml ashttp://williamslabs.com/point.kml
ManoM
unread,
Jun 3, 2008, 2:03:09 PM6/3/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to KML Developer Support - KML Server Side Scripting
This is a security provision, to prevent someone from changing a KML
that someone else created.