Skip to content

Commit

Permalink
Move features functions (#913)
Browse files Browse the repository at this point in the history
* move OGC API - Features endpoints

* Update features.py

* Update __init__.py
  • Loading branch information
tomkralidis authored Mar 23, 2024
1 parent 4f45544 commit af8b0f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
13 changes: 0 additions & 13 deletions owslib/ogcapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,16 +240,3 @@ def collection_schema(self, collection_id: str) -> dict:

path = f'collections/{collection_id}/schema'
return self._request(path=path)

def collection_queryables(self, collection_id: str) -> dict:
"""
implements /collections/{collectionId}/queryables
@type collection_id: string
@param collection_id: id of collection
@returns: `dict` of feature collection queryables
"""

path = f'collections/{collection_id}/queryables'
return self._request(path=path)
13 changes: 13 additions & 0 deletions owslib/ogcapi/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ def feature_collections(self) -> list:

return features_

def collection_queryables(self, collection_id: str) -> dict:
"""
implements /collections/{collectionId}/queryables
@type collection_id: string
@param collection_id: id of collection
@returns: `dict` of feature collection queryables
"""

path = f'collections/{collection_id}/queryables'
return self._request(path=path)

def collection_items(self, collection_id: str, **kwargs: dict) -> dict:
"""
implements /collection/{collectionId}/items
Expand Down

0 comments on commit af8b0f2

Please sign in to comment.