Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: TimeStamp #27

Closed
GoogleCodeExporter opened this issue Aug 13, 2015 · 2 comments
Closed

Feature Request: TimeStamp #27

GoogleCodeExporter opened this issue Aug 13, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Started
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant