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

add OGC API - EDR client #899

Merged
merged 2 commits into from
Dec 18, 2023
Merged

Conversation

tomkralidis
Copy link
Member

FYI this PR should be merged once the pygeoapi demo server is updated via this PR.

owslib/ogcapi/edr.py Outdated Show resolved Hide resolved

def __init__(self, url: str, json_: str = None, timeout: int = 30,
headers: dict = None, auth: Authentication = None):
__doc__ = Features.__doc__ # noqa
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't there a need for a custom docstring ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not at this level, given the building blocks of OGC APIs (collections are the same across APIS). docstrings are more specific deeper into the endpoints.


def data(self) -> list:
"""
implements /collections filtered on EDR data resources
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
implements /collections filtered on EDR data resources
Collections filtered on EDR data resources.

def query_data(self, collection_id: str,
query_type: str, **kwargs: dict) -> BinaryIO:
"""
implements /collection/{collectionId}/coverage/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From someone who's not familiar with the API, I suggest the docstring should start with what the function does in simple terms.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All owslib.ogcapi is documented in this manner (and much of owslib). I can cover this more fully in a subsequent PR.

@tomkralidis tomkralidis merged commit de5d26e into geopython:master Dec 18, 2023
5 checks passed
@tomkralidis tomkralidis deleted the ogcapi-edr branch December 18, 2023 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants