-
Notifications
You must be signed in to change notification settings - Fork 278
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
Conversation
|
||
def __init__(self, url: str, json_: str = None, timeout: int = 30, | ||
headers: dict = None, auth: Authentication = None): | ||
__doc__ = Features.__doc__ # noqa |
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.
Isn't there a need for a custom docstring ?
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.
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 |
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.
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/ |
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.
From someone who's not familiar with the API, I suggest the docstring should start with what the function does in simple terms.
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.
All owslib.ogcapi
is documented in this manner (and much of owslib
). I can cover this more fully in a subsequent PR.
FYI this PR should be merged once the pygeoapi demo server is updated via this PR.