Feature request: ability to set plugin time according to season (time of year) instead of absolute time

39 views
Skip to first unread message

Phil Vandry

unread,
Feb 5, 2012, 10:24:48 PM2/5/12
to google-earth-...@googlegroups.com
When I play back a Google Earth simulation of an event I recorded, I set the plugin time like this:

var timeStamp = ge.createTimeStamp('timeid');
timeStamp.getWhen().set(iso8601punct(f.start));
ge.getTime().setTimePrimitive(timeStamp);

f.start is the start time of the event. iso8601punct converts a Javascript Date object to a string (why does this function want a string and not a Javascript Date object anyway? – but that's not the issue).

I have also enabled historical imagery.

I believe that what happens is that Google Earth selects the imagery that was taken as close as possible to the time I requested.

It would be better for our application if we could select scenery that matches the season of the date we request, even if that scenery is farther in the past (or future) than some other scenery that is currently displayed. For example, if the date is 2012-01-20 then Winter imagery from 2011-02-25 is a better fit than Summer imagery from 2011-08-31, even if the Summer imagery is only 5 months away from the requested date and the Winter imagery is 11 months away.

I see two ways to implement this:
  • If the API gave access to a list of available historical imagery dates, we could write code to choose one that suits us. I don't believe the API makes this information available though (furthermore, I imagine that it probably gets a little complicated internally because different dates are available in different geographical areas).
  • The API could provide a way to register interest in different sets of imagery, say by making available a flag that says that the month and day are more important than the year. It could also be something more ambitious like registering a callback function that returns a preference score given a date.
If I have missed something and this functionality already exists, I'd appreciate a hint!

Thanks

-Phil

Josh L

unread,
Feb 6, 2012, 3:46:16 PM2/6/12
to KML Developer Support - Google Earth Plug-in
Hi Phil,

You can use ge.getTime().getControl().getAvailableImageDates() to get
a list of available timestamps for imagery in a particular view
(basically the same data that provides the tickmarks you see in the UI
control). As you zoom into different areas, this list of dates will
change.

Cheers,

-Josh

On Feb 5, 7:24 pm, Phil Vandry wrote:
> When I play back a Google Earth simulation of an event I recorded, I set
> the plugin time like this:
>
> var timeStamp = ge.createTimeStamp('timeid');
> timeStamp.getWhen().set(iso8601punct(f.start));
> ge.getTime().setTimePrimitive(timeStamp);
>
> f.start is the start time of the event. iso8601punct converts a Javascript
> Date object to a string (why does this function want a string and not a
> Javascript Date object anyway? – but that's not the issue).
>
> I have also enabled historical imagery.
>
> I believe that what happens is that Google Earth selects the imagery that
> was taken as close as possible to the time I requested.
>
> It would be better for our application if we could select scenery that
> matches the season of the date we request, even if that scenery is farther
> in the past (or future) than some other scenery that is currently
> displayed. For example, if the date is 2012-01-20 then Winter imagery from
> 2011-02-25 is a better fit than Summer imagery from 2011-08-31, even if the
> Summer imagery is only 5 months away from the requested date and the Winter
> imagery is 11 months away.
>
> I see two ways to implement this:
>
>    - If the API gave access to a list of available historical imagery
>    dates, we could write code to choose one that suits us. I don't believe the
>    API makes this information available though (furthermore, I imagine that it
>    probably gets a little complicated internally because different dates are
>    available in different geographical areas).
>    - The API could provide a way to register interest in different sets of

Nymor

unread,
Feb 7, 2012, 11:21:49 AM2/7/12
to KML Developer Support - Google Earth Plug-in
I hope the OP doesn't mind me dropping another quick question in
here ... as it is related I beleive.

I might well be missing something simple but is there a way to set the
date of the imagery I wish to show but without having to have/use the
slider. I have a location where the current imagery is not as good as
some from a few years ago so I just want to be able to set the date I
use but not have any of it's selection visible to the user - just do
it all in the background.

Is there a way to do that?

Regards
Nymor

Phil Vandry

unread,
Feb 7, 2012, 1:11:48 PM2/7/12
to google-earth-...@googlegroups.com
Google,

Your tools suck. This Google Groups thing is just about impossible to use. Use a normal mailing list like the rest of the people on the planet.

Thanks for the suggestion Josh. I have not tried it yet but look forward to doing so. But note that you won't be hearing from me about how it worked out unless your mail server decides it wants my reply.

-Phil
 
From: Mail Delivery Subsystem <mailer...@google.com>
X-Failed-Recipients: google-earth-...@googlegroups.com
Subject: Delivery Status Notification (Failure)
Message-ID: <14dae934078fed...@google.com>
Date: Tue, 07 Feb 2012 17:44:32 +0000

Delivery to the following recipient failed permanently:

     google-earth-...@googlegroups.com

Technical details of permanent failure: 
The group google-earth-...@googlegroups.com only allows post from the web ui.

Josh L

unread,
Feb 8, 2012, 2:20:07 PM2/8/12
to KML Developer Support - Google Earth Plug-in
Hey Nymor,

Yes you can programmatically set the virtual clock of the plugin, and
if you have historical imagery enabled then it will show the most
recent image prior to the time that you set. You can see an example
of this at http://code.google.com/apis/ajax/playground/#time_and_historical_imagery_ui

Cheers,

-Josh
Reply all
Reply to author
Forward
0 new messages