koopjs / FeatureServer

An open source Geoservices Implementation (deprecated)
https://geoservices.github.io
Other
104 stars 32 forks source link

Time enabled layer #90

Closed keithfraley closed 6 years ago

keithfraley commented 6 years ago

i am curious how to set up the feature service output to be time enabled (and z value for that matter) so that we can use the time sliders in portal for arcgis or agol.

I have hacked together a provider that does this but would much rather this be part of the core product.

rgwozdz commented 6 years ago

cross-posted from: https://github.com/koopjs/koop/issues/305

@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" : "", "endTimeField" : "", "trackIdField" : "", "timeExtent" : [, ], "timeReference" : { "timeZone" : "", "respectsDaylightSaving" : <true | false> }, "timeInterval" : , "timeIntervalUnits" : "" } Spec pulled from here: https://developers.arcgis.com/rest/services-reference/layer-feature-service-.htm

Will setting up the above timeInfo object in provider metadata meet your needs?

keithfraley commented 6 years ago

I am unable to find the providers metadata in order to define a timeInfo property. Can you help me specifcally where this is supposed to go?

rgwozdz commented 6 years ago

Guessing you are using Elastic Search provider, so it would go here: https://github.com/koopjs/koop-provider-elasticsearch/blob/master/provider/models/esmodel.js#L22-L24

keithfraley commented 6 years ago

brilliant, that is what i was looking for

On Wed, Apr 25, 2018 at 7:46 AM, Rich Gwozdz notifications@github.com wrote:

Guessing you are using Elastic Search provider, so it would go here: https://github.com/koopjs/koop-provider-elasticsearch/ blob/master/provider/models/esmodel.js#L22-L24

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/koopjs/FeatureServer/issues/90#issuecomment-384273824, or mute the thread https://github.com/notifications/unsubscribe-auth/ADyxVJ88P6WjNTXGpBeRqhWOyorT8X5Kks5tsHAwgaJpZM4TPOC3 .

rgwozdz commented 6 years ago

@keithfraley - is this resolved now?

keithfraley commented 6 years ago

I will test tonight

On Mon, May 7, 2018, 4:33 PM Rich Gwozdz notifications@github.com wrote:

@keithfraley https://github.com/keithfraley - is this resolved now?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/koopjs/FeatureServer/issues/90#issuecomment-387213528, or mute the thread https://github.com/notifications/unsubscribe-auth/ADyxVHjfIYITuCytjITrSoRrAhtA3HgLks5twL2qgaJpZM4TPOC3 .

keithfraley commented 6 years ago

worked great

On Mon, May 7, 2018 at 4:44 PM, keith fraley keith.fraley@gmail.com wrote:

I will test tonight

On Mon, May 7, 2018, 4:33 PM Rich Gwozdz notifications@github.com wrote:

@keithfraley https://github.com/keithfraley - is this resolved now?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/koopjs/FeatureServer/issues/90#issuecomment-387213528, or mute the thread https://github.com/notifications/unsubscribe-auth/ADyxVHjfIYITuCytjITrSoRrAhtA3HgLks5twL2qgaJpZM4TPOC3 .