From 10f9a6a9fdb39af1f3858b9ef27a381d0bbe60fd Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Fri, 12 Feb 2021 09:41:49 -0500 Subject: [PATCH 1/2] update OpenAPI repo names --- docs/source/data-publishing/ogcapi-coverages.rst | 2 +- docs/source/data-publishing/ogcapi-processes.rst | 2 +- docs/source/data-publishing/ogcapi-tiles.rst | 2 +- tests/pygeoapi-test-openapi.yml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/source/data-publishing/ogcapi-coverages.rst b/docs/source/data-publishing/ogcapi-coverages.rst index bf29290..b2df387 100644 --- a/docs/source/data-publishing/ogcapi-coverages.rst +++ b/docs/source/data-publishing/ogcapi-coverages.rst @@ -101,7 +101,7 @@ Data access examples - coverage access with subsetting - http://localhost:5000/collections/foo/coverage?subset=lat(10,20)&subset=long(10,20) -.. _`OGC API - Coverages`: https://github.com/opengeospatial/ogc_api_coverages +.. _`OGC API - Coverages`: https://github.com/opengeospatial/ogcapi-coverages .. _`rasterio`: https://rasterio.readthedocs.io .. _`xarray`: https://xarray.pydata.org .. _`NetCDF`: https://en.wikipedia.org/wiki/NetCDF diff --git a/docs/source/data-publishing/ogcapi-processes.rst b/docs/source/data-publishing/ogcapi-processes.rst index fb6021d..a063d40 100644 --- a/docs/source/data-publishing/ogcapi-processes.rst +++ b/docs/source/data-publishing/ogcapi-processes.rst @@ -73,6 +73,6 @@ Processing examples .. todo:: add more examples once OAProc implementation is complete -.. _`OGC API - Processes`: https://github.com/opengeospatial/wps-rest-binding +.. _`OGC API - Processes`: https://github.com/opengeospatial/ogcapi-processes .. _`sample`: https://github.com/geopython/pygeoapi/blob/master/pygeoapi/process/hello_world.py .. _`TinyDB`: https://tinydb.readthedocs.io diff --git a/docs/source/data-publishing/ogcapi-tiles.rst b/docs/source/data-publishing/ogcapi-tiles.rst index 4b8d8f4..1c3a9aa 100644 --- a/docs/source/data-publishing/ogcapi-tiles.rst +++ b/docs/source/data-publishing/ogcapi-tiles.rst @@ -70,7 +70,7 @@ Data access examples - `http://localhost:5000/collections/lakes/tiles/{tileMatrixSetId}/{tileMatrix}/{tileRow}/{tileCol}?f=mvt `_ -.. _`OGC API - Tiles`: https://github.com/opengeospatial/OGC-API-Tiles +.. _`OGC API - Tiles`: https://github.com/opengeospatial/ogcapi-tiles .. _`MapProxy`: https://mapproxy.org .. _`tippecanoe`: https://github.com/mapbox/tippecanoe .. _`Mapbox Vector Tiles`: https://docs.mapbox.com/vector-tiles/reference diff --git a/tests/pygeoapi-test-openapi.yml b/tests/pygeoapi-test-openapi.yml index bb798bc..6b8332a 100644 --- a/tests/pygeoapi-test-openapi.yml +++ b/tests/pygeoapi-test-openapi.yml @@ -77,7 +77,7 @@ components: content: application/json: schema: - $ref: https://raw.githubusercontent.com/opengeospatial/wps-rest-binding/master/core/openapi/schemas/exception.yaml + $ref: https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/schemas/exception.yaml description: Unexpected error info: contact: @@ -276,7 +276,7 @@ paths: type: text/plain value: hi there schema: - $ref: https://raw.githubusercontent.com/opengeospatial/wps-rest-binding/master/core/openapi/schemas/execute.yaml + $ref: https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/schemas/execute.yaml description: Mandatory execute request JSON required: true responses: From f834b146b846e94d463bf1b75fba41ef3e01ea65 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Fri, 12 Feb 2021 14:02:13 -0500 Subject: [PATCH 2/2] fix flake8 --- pygeoapi/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygeoapi/util.py b/pygeoapi/util.py index e67b4e0..ac9f863 100644 --- a/pygeoapi/util.py +++ b/pygeoapi/util.py @@ -68,8 +68,8 @@ def dategetter(date_property, collection): :param date_property: property representing the date :param collection: dictionary to check within - :returns: `str` (ISO8601) representing the date. (allowing for an open interval - using null). + :returns: `str` (ISO8601) representing the date (allowing + for an open interval using null) """ value = collection.get(date_property, None)