update OAFeat Part 3 based on specification updates (#1223)

This commit is contained in:
Tom Kralidis
2023-04-24 03:13:48 -04:00
committed by GitHub
parent ac16e5ae97
commit 12b2fa8935
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -124,6 +124,8 @@ CONFORMANCE = {
'http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/html',
'http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson',
'http://www.opengis.net/spec/ogcapi-features-2/1.0/conf/crs',
'http://www.opengis.net/spec/ogcapi-features-3/1.0/conf/queryables',
'http://www.opengis.net/spec/ogcapi-features-3/1.0/conf/queryables-query-parameters', # noqa
'http://www.opengis.net/spec/ogcapi-features-4/1.0/conf/create-replace-delete' # noqa
],
'coverage': [
@@ -1010,14 +1012,14 @@ class API:
collection['itemType'] = collection_data_type
LOGGER.debug('Adding feature/record based links')
collection['links'].append({
'type': FORMAT_TYPES[F_JSON],
'rel': 'queryables',
'type': 'application/schema+json',
'rel': 'http://www.opengis.net/def/rel/ogc/1.0/queryables',
'title': 'Queryables for this collection as JSON',
'href': f'{self.get_collections_url()}/{k}/queryables?f={F_JSON}' # noqa
})
collection['links'].append({
'type': FORMAT_TYPES[F_HTML],
'rel': 'queryables',
'rel': 'http://www.opengis.net/def/rel/ogc/1.0/queryables',
'title': 'Queryables for this collection as HTML',
'href': f'{self.get_collections_url()}/{k}/queryables?f={F_HTML}' # noqa
})
+1 -1
View File
@@ -607,7 +607,7 @@ def test_conformance(config, api_):
assert isinstance(root, dict)
assert 'conformsTo' in root
assert len(root['conformsTo']) == 23
assert len(root['conformsTo']) == 25
assert 'http://www.opengis.net/spec/ogcapi-features-2/1.0/conf/crs' \
in root['conformsTo']