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
SOS 2.0 and WaterML2.0 decoder #171
Conversation
is this likely to be merged into master soon ? I'd like to use it and although I could get this version directly any examples I create will be for users who will have the master. |
Hi Andrew, Hopefully soon. @tomkralidis - any blockers on this? |
I have not studied the code in detail but, in principle, would some/any of the non-WaterML specific code be amenable to porting over to support SOS 1.0 (once its been merged, of course). |
@peterataylor any chance you can rebase/squash this PR to bring it up to date? |
b142fa4
to
432b6d8
Compare
Values are assigned according to table from CSW specification | DC Metadata element name | Property mapping to ISO 19139 information model | |--------------------------|---------------------------------------------------------| | creator | prefix[role.CI_RoleCode@codeListValue=’**originator**’] | | publisher | prefix[role.CI_RoleCode@codeListValue=’**publisher**’] | | contributor | prefix[role.CI_RoleCode@codeListValue=’**author**’] |
…int statements for backward compatibility?
It still contained a reference to the university of north carlolina, which I suppose is wrong
- SOS clients can specify in the kwargs of the methods a timeout which gets passed to the URL request.
WFS 2.0.0 needs parameter 'TypeNames', WFS 1.0.0 can handle TypeName
sos100 and sos200 implement __getitem__ to allow array like access to the content offerings. was testing for name instead of id to be a valid key. Added doctest to verify valid and invalid keys
432b6d8
to
6052bde
Compare
support for decoding WaterML2.0 and general Observations & Measurement types.
6052bde
to
38b31b5
Compare
support for decoding WaterML2.0 and general Observations & Measurement types.
…r/OWSLib into sos-decoder-waterml2
@peterataylor I'll look at this once the final python 3 compat PR is merged, thanks for the work |
Thanks Kyle. I've been meaning to get back to update this PR, but I'll wait for the v3 changes to go through. Let me know if/when you need a hand. |
See #241 |
Hi Tom,
As discussed in #131.
Adding a decoder for SOS2.0 GetObservation requests that marshals XML responses from O&M and WaterML2.0 formats.
Summarised again here:
The main test I've added shows basic usage.
I've also changed the README file to be .MD rather than .txt so it renders on the landing page (peterataylor@df622c7, peterataylor@48ea26b and peterataylor@3730a67). I can take these out of the PR if you prefer.
Also added timeout to get_observation call (default 30 seconds) in sos200. Doctests set this to 120 as the services can be slow in responding.
Updated the doco to include doc tests and supported versions: peterataylor@3600cc8.