KML change updates for LineStrings and Polygons don't work

4978
3
04-02-2014 12:00 PM
KennethTriplett
New Contributor
I am using a NetworkLink to dynamically update a map.  So far, I am only able to get Point coordinates to change properly.  I need to be able to update the coordinates of a LineString as well as a Polygon. 

Create and Delete updates work fine, but the Change does not.  Here is my "Change" kml.  I've ensured that the targetHref and the targetId are both correct.

Any ideas?  Does ArcGIS Explorer support updating things other than points? 
Any help would be appreciated.

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
   <NetworkLinkControl>
      <cookie>cookie=CookieFrom2</cookie>
      <linkName>Enable Updates</linkName>
      <Update>
         <targetHref>http://192.168.128.208:7003/MoveEmptyTrackList.kml</targetHref>
         <Change>
            <LineString targetId="MTG_Track_01_01">
               <coordinates>
                  -90.88,35.00,363 -89.64,34.58,363
               </coordinates>
            </LineString>
        </Change>
      </Update>
   </NetworkLinkControl>
</kml>
0 Kudos
3 Replies
JoeMetzidis
New Contributor
yes we do support "Change" with lines and polygons.

Please provide the Kml file you are changing and we will investigate.
0 Kudos
KennethTriplett
New Contributor
Here are the files:
The Network Link:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Document id="ET">
    <name>ET</name>
   <visibility>1</visibility>
    <NetworkLink id="Tracks">
      <name>Tracks</name>
      <Link>
        <href>http://192.168.128.208:7003/EmptyTrackList.kml</href>
      </Link>
    </NetworkLink>
   
    <NetworkLink id="Updates">
      <name>Dynamic Updater</name>
      <Link>
        <href>http://192.168.128.208:7003/MoveUpdater.kml</href>     
          <refreshMode>onInterval</refreshMode>
          <refreshInterval>30</refreshInterval>
      </Link>
    </NetworkLink>
  </Document>
</kml>





EmptyTrackList.kml

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Document id="TrackList">
    <name>All The Lines</name>
  </Document>
</kml>


The first time, the MoveUpdater.kml file is:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
   <NetworkLinkControl>
      <linkName>Enable Updates</linkName>
      <Update>
         <targetHref>http://192.168.128.208:7003/EmptyTrackList.kml</targetHref>
         <Create>
            <Document targetId="TrackList">
               <Document id="LinesDoc">
                  <name>Lines</name>
               </Document>
            </Document>
            <Document targetId="LinesDoc">
               <Placemark id="Track01">
                  <name>Track 01</name>
                  <open>1</open>
                  <MultiGeometry id="MTGTrack01">
                     <LineString id="MTGTrack0101">
                        <coordinates>
                           -88.8,35.4,363
                           -89.6,34.5,363
                        </coordinates>
                     </LineString>
                  </MultiGeometry>
               </Placemark>
            </Document>
         </Create>
      </Update>
   </NetworkLinkControl>
</kml>


After the refresh period, when ArcGIS Explorer refreshes the MoveUpdater.kml file, it retrieves this:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
   <NetworkLinkControl>
      <linkName>Enable Updates</linkName>
      <Update>
         <targetHref>http://192.168.128.208:7003/EmptyTrackList.kml</targetHref>
         <Change>
            <LineString targetId="MTGTrack0101">
               <coordinates>
                  -90.8,35.0,363
                  -89.6,34.5,363
               </coordinates>
            </LineString>
         </Change>
      </Update>
   </NetworkLinkControl>
</kml>


The coordinates of the LineString do not update.  There appears to be a very brief flash as if ArcGIS Explorer is trying to bring up a popup box, but it goes away before any text is visible.  Any help figuring out why it does not update would be appreciated.
0 Kudos
KennethTriplett
New Contributor

Did anyone investigate this issue, and is there any resolution?  The problem with lineStrings and polygons is still present.  It works properly in Google Earth.

0 Kudos