-
Notifications
You must be signed in to change notification settings - Fork 33
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
🎉 Fetching server dates #32
Conversation
I think that's because the server is down atm... Will check on it |
This is fine for now and probably part of the how tilling works in the data cube |
src/config/prism.json
Outdated
@@ -1,5 +1,9 @@ | |||
{ | |||
"country": "Mongolia", | |||
"serversUrls": { | |||
"wcs": ["http://185.30.8.6:5000"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So technically in Mongolia we have 2 servers with base URLS:
geoserver: https://mng-wfp.ovio.org:8443/geoserver/prism/
openDataCube: http://185.30.8.6:5000/
They can both return WMS & WCS layers using /wms?... or /wcs?... . The difference is that they don't return GetCapabilities the same way for WMS, which is why the python function I shared with you was a bit convoluted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will be using geoserver
only for WMS though and openDataCube
for both.
I think we should restructure the layers in layers.json
to take:
server_id
instead of theserver_uri
server_type
server_layer
server_style
(optional)
So that we can build URLs like this one programmatically -> http://185.30.8.6:5000/wms?styles=ndvi&layers=ModisIndices
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts @bencpeters ?
@mamadOuologuem mng-wfp.ovio.org should be back up |
* @returns an object shape like { [layerId]: availableDates } | ||
*/ | ||
function formatCapabilitiesInfo( | ||
rawLayers: any, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't really need to explicitly define any
types - that's the default. In general, you should try to do stronger typing than any
, but if it's not possible (or worth it), you don't need to actually type them as any
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is done
availableDates
from the specified servers insrc/config/prism.json
Notes
time
argument, date selector)serversUrls
insrc/config/prism.json