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

Time aware layers #305

Closed
WalterPayne opened this issue Oct 23, 2017 · 10 comments
Closed

Time aware layers #305

WalterPayne opened this issue Oct 23, 2017 · 10 comments
Labels

Comments

@WalterPayne
Copy link

Is it possible to create a time-aware layer in KOOP so that the time-sliders in the various clients are activated when consuming the service?

We can easily handle the form-date and to-date queries in the getData method.

Thank you.

@keithfraley
Copy link

the answer is yes. We have been able to build this into our provider.

@keithfraley
Copy link

Any comments on the best way to set this up as opposed to hacking it ourselves?

@rgwozdz
Copy link
Member

rgwozdz commented Apr 23, 2018

@keithfraley - Looking at the code, I think the functionality it already there. FeatureServer looks in your provider's metadata to see if you have defined a timeInfo property, and if so, uses that in the layer info service (https://github.com/koopjs/FeatureServer/blob/master/src/templates.js#L54). So try including the timeInfo in your metadata with the following spec:

"timeInfo" : {
     "startTimeField" : "<startTimeFieldName>",
     "endTimeField" : "<endTimeFieldName>",
     "trackIdField" : "<trackIdFieldName>",
     "timeExtent" : [<startTime>, <endTime>],
     "timeReference" : {
       "timeZone" : "<timeZone>",
       "respectsDaylightSaving" : <true | false>
     },
     "timeInterval" : <timeInterval>,
     "timeIntervalUnits" : "<timeIntervalUnits>"
}

Spec pulled from here: https://developers.arcgis.com/rest/services-reference/layer-feature-service-.htm

@rgwozdz
Copy link
Member

rgwozdz commented May 8, 2018

@keithfraley noticed you have had some success with this issue on your provider (koopjs/koop-provider-elasticsearch#11). Was adding time-info to your provider's metadata enough to enable time-sliders in AGOL and Pro?

@keithfraley
Copy link

keithfraley commented May 8, 2018 via email

@rgwozdz
Copy link
Member

rgwozdz commented May 8, 2018

Ok, but is that something you're handling in the provider? Trying to determine if this issue can be closed.

@keithfraley
Copy link

keithfraley commented May 8, 2018 via email

@dhatcher
Copy link

dhatcher commented May 8, 2018

I'd say if it is handled at the winnow level you would have to make it optional. In some cases (like when using a big data store) it is safer and faster to handle it at the provider level to keep from returning thousands of features from the store that don't fit into a given time interval.

@keithfraley
Copy link

keithfraley commented May 8, 2018 via email

@rgwozdz
Copy link
Member

rgwozdz commented May 8, 2018

That's a a great point @dhatcher, so I'd say we keep this in the provider. I will close this, but am opening an issue in the koopjs.github.io repo to document an example of this in a provider: koopjs/koopjs.github.io#27

@rgwozdz rgwozdz closed this as completed May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants