Batch update not working - workaround?

19 views
Skip to first unread message

Michael Tyson

unread,
Oct 11, 2010, 10:49:21 AM10/11/10
to google-map...@googlegroups.com
Hello,

Batch feature update doesn't have any effect - no changes are applied.

For example, creating a new feature by posting to a map's feature feed, then updating that feature by posting to the map's batch feature feed with an entry with operation type="update" and new details, has no effect.

This has been a long-running issue which no one seems to have a handle on yet - does anyone know of a workaround, aside from simply not using the batch feature?


See attached demo script.


maps-batch-update-test.sh

Michael Tyson

unread,
Oct 15, 2010, 1:38:14 PM10/15/10
to google-map...@googlegroups.com
Bump - Waiting on an answer.

<maps-batch-update-test.sh>


Ted

unread,
Oct 15, 2010, 4:17:05 PM10/15/10
to google-map...@googlegroups.com
Hello Tyson,

i have alredy had  post an batch script that creates features and it yet function very well, the only promblem was that i must include the <style> tag when i create feature.

i have include an complet batch script for create map an feature in this link

http://code.google.com/p/gdata-java-client/issues/detail?id=282#c0

if you have problem ask

Bye Tedi

2010/10/11 Michael Tyson <mic...@atastypixel.com>



-- 
Michael Tyson | atastypixel.com
A Tasty Pixel: Delectable apps for iPhone and Mac

Loopy, our loop-based instrument, musical notepad and Best App Ever '08 nominee is now half-price for a limited time. Grab it on the app store!

aim: mikerusselltyson
twitter: MichaelTyson





--
Ted Kondi

Michael Tyson

unread,
Oct 16, 2010, 9:05:24 AM10/16/10
to google-map...@googlegroups.com
Thanks, Ted,

The style tag doesn't seem to make a difference - the demo script I attached already has empty style tags. =/

Cheers, though,
Michael

--
You received this message because you are subscribed to the Google Groups "Google Maps Data API" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-data...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-data-api?hl=en.

Michael Tyson

unread,
Oct 19, 2010, 2:14:58 PM10/19/10
to google-map...@googlegroups.com
I thought I'd include a transcript, so it wasn't necessary to look at the script: Can anyone see where I might be going wrong in the following?


Here's a placemark:

<?xml version="1.0" encoding="UTF-8"?>
<atom:entry xmlns="http://www.opengis.net/kml/2.2" xmlns:app="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005" gd:etag="W/&quot;C0MMSHgzfip7ImA9Wx5UFUw.&quot;">
   <atom:published>2010-10-19T18:04:49.686Z</atom:published>
   <atom:updated>2010-10-19T18:04:49.686Z</atom:updated>
   <app:edited>2010-10-19T18:04:49.686Z</app:edited>
   <atom:title>Original Title</atom:title>
   <atom:content type="application/vnd.google-earth.kml+xml">
      <Placemark>
         <name>Original Title</name>
         <description/>
         <Style/>
         <Point>
            <coordinates>-123.4567,1.234567,0.0</coordinates>
         </Point>
      </Placemark>
   </atom:content>
</atom:entry>





And a batch request to change it:


<?xml version="1.0" encoding="utf-8"?>
<atom:entry>
  <batch:operation type="update" />
  <batch:id>1</batch:id>
  <atom:title>New Title</atom:title>
  <atom:content type="application/vnd.google-earth.kml+xml">
    <Placemark>
      <name>New Title</name>
      <description />
      <Point>
        <coordinates>-12.765432,37.654321,0.0</coordinates>
      </Point>
      <Style/>
    </Placemark>
  </atom:content>
</atom:entry>
</atom:feed>





And an affirmative reply, that hasn't actually applied any changes:





<?xml version="1.0" encoding="UTF-8"?>
   <atom:updated>2010-10-19T18:04:51.030Z</atom:updated>
   <atom:title>Batch Feed</atom:title>
   <atom:entry xmlns:batch="http://schemas.google.com/gdata/batch" xmlns:app="http://www.w3.org/2007/app" xmlns:gd="http://schemas.google.com/g/2005" gd:etag="W/&quot;C0MMSHgzfip7ImA9Wx5UFUw.&quot;">
      <atom:published>2010-10-19T18:04:49.686Z</atom:published>
      <atom:updated>2010-10-19T18:04:49.686Z</atom:updated>
      <app:edited>2010-10-19T18:04:49.686Z</app:edited>
      <atom:title>Original Title</atom:title>
      <atom:content type="application/vnd.google-earth.kml+xml">
         <Placemark>
            <name>Original Title</name>
            <description/>
            <Style/>
            <Point>
               <coordinates>-123.4567,1.234567,0.0</coordinates>
            </Point>
         </Placemark>
      </atom:content>
      <batch:id>1</batch:id>
      <batch:operation type="update"/>
      <batch:status code="200" reason="Success"/>
   </atom:entry>
</atom:feed>






On 11 Oct 2010, at 15:49, Michael Tyson wrote:

Reply all
Reply to author
Forward
0 new messages