Skip to content

add OGC API - EDR client#899

Merged
tomkralidis merged 2 commits into
geopython:masterfrom
tomkralidis:ogcapi-edr
Dec 18, 2023
Merged

add OGC API - EDR client#899
tomkralidis merged 2 commits into
geopython:masterfrom
tomkralidis:ogcapi-edr

Conversation

@tomkralidis
Copy link
Copy Markdown
Member

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

Comment thread owslib/ogcapi/edr.py Outdated
Comment thread owslib/ogcapi/edr.py

def __init__(self, url: str, json_: str = None, timeout: int = 30,
headers: dict = None, auth: Authentication = None):
__doc__ = Features.__doc__ # noqa
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread owslib/ogcapi/edr.py

def data(self) -> list:
"""
implements /collections filtered on EDR data resources
Copy link
Copy Markdown
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.

Comment thread owslib/ogcapi/edr.py
def query_data(self, collection_id: str,
query_type: str, **kwargs: dict) -> BinaryIO:
"""
implements /collection/{collectionId}/coverage/
Copy link
Copy Markdown
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
Copy Markdown
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.

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