xpublish-community / xpublish-edr

OGC EDR router for xpublish
BSD 3-Clause "New" or "Revised" License
4 stars 4 forks source link

Compatibility with OWSLib EDR client #38

Open jhamman opened 4 months ago

jhamman commented 4 months ago

I recently found that OWSLib has a EDR client. Has anyone tried using the OWSLib client with Xpublish EDR?

https://owslib.readthedocs.io/en/latest/usage.html#ogc-api-environmental-data-retrieval-part-1-core-1-0

from owslib.ogcapi.edr import EnvironmentalDataRetrieval
e = EnvironmentalDataRetrieval('http://localhost:5000')
icoads_sst = m.collection('icoads-sst')
data = e.query_data('icoads_sst', 'position', coords='POINT(-75 45)', parameter_names=['SST', 'AIRT'])
abkfenris commented 4 months ago

I'm guessing it probably won't work as is. With the new OGC API's they have defined a deeper URL structure in addition to the requests and responses, and the normal Xpublish dataset structure doesn't exactly match. I've tried to match the requests, responses, and last part of the URL where reasonable.

I think we could create an EDR app router that could bring in datasets in a structure that matches the full OGC API, but we'd want to ponder on how that will interact with dataset manipulation types of plugins.

monodeldiablo commented 1 month ago

Confirming it doesn't work after some cursory experimentation. OWSLib expects the deeper nesting under /collections that @abkfenris refers to.