1001WordsPhoto / gpicsync

Automatically exported from code.google.com/p/gpicsync
Other
0 stars 0 forks source link

Feature Request: TimeStamp #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Thanks for writing this app. Its' great.
I am using 0.99 on Win XP SP2

In the KML Generation, please consider adding the capability to write a
<TimeSpan> to the Document and a <TimeStamp> to each placemark.

These elements will enable the time bar in Google Earth and let a user play
through the photos in time.

I think adding the <TimeStamp> is particularly straightforward.  The goal
is to get something like the following in the <Placemark>

<TimeStamp>
  <when>2007-05-17T12:00:00Z</when> 
</TimeStamp> 

In the placemark method in kmlGen.py, you just need the time of the photo.
 You have a method readDateTime(self) in geoexif.py that returns the date
and time in a list.  These just need to get concatenated with a 'T' in
between them and a 'Z' at the end. I am assuming this time is UTC.

After that, it seems the only other change would be to modify the line:
"</coordinates>\n</Point>\n"

to 

"</coordinates>\n</Point><TimeStamp><when>"+datetimeval+"</when></TimeStamp>\n"

Sorry I don't know Python; otherwise, I'd have offered better code suggestion.

Michael 

Original issue reported on code.google.com by mlos...@gmail.com on 25 May 2007 at 9:27

GoogleCodeExporter commented 9 years ago
Hi Michael, yes this is a great idea! :)

I've just implemented the time stamps in the placemarks.

You can test a temporary build here:
http://francois.schnell.free.fr/gpicsync/temp/latest-build/

Warning before downloading, if you have the latest AVG Antivirus software you 
may
experience this problem (coming from py2exe that I use to create the .exe):
http://groups.google.com/group/gpicsync/browse_thread/thread/940cd1cc552226af

Concerning timeSpan it will be more tricky:

- by default my GE is "local time zone" (and most users have local time on 
their camera).
On my local time pics GE added another 2 hours (UTC Offest from France) so the 
span
is two hours off from the reality.

- I'm concerned with the size of the "visible time window". I fear that some 
users
will think the geolocalization didn't
work because they don't see all the pictures. So I need to see if and how I can 
maybe
set it to the trip duration by default
(the users can after re size it to its need). I think the time feature is really
great so I'd love to have it by default.

Don't also hesitate to use the GPicSync Google Group for feature resquests:
http://groups.google.com/group/gpicsync

Thanks!

francois

Original comment by francois...@gmail.com on 26 May 2007 at 5:07

GoogleCodeExporter commented 9 years ago
Ok, just for information since version 1.00 of GPicSync the timeStamp option 
for the
kml is available.

To go further I'd like to control the size of "time window" (which can be 
changed by
hand) but I didn't see for now how to control it either through the kml or 
through
the API COM of GE.

francois

Original comment by francois...@gmail.com on 6 Jun 2007 at 6:21