From ce48a1a3f69c951c9c78825664897d595800dd65 Mon Sep 17 00:00:00 2001 From: Alessandro Pasotti Date: Fri, 8 Nov 2019 16:54:10 +0100 Subject: [PATCH 1/2] Server OAPIF: update conformance classes --- src/server/services/wfs3/qgswfs3handlers.cpp | 10 +++++----- .../qgis_server/api/test_wfs3_api_project.json | 5 +++-- .../api/test_wfs3_collection_points_timefilters.json | 8 +++++++- .../api/test_wfs3_collection_testlayer_èé.html | 6 ++++-- .../api/test_wfs3_collection_testlayer_èé.json | 8 +++++++- .../qgis_server/api/test_wfs3_collections_empty.html | 2 +- ...fs3_collections_items_as-areas-short-name_3857.json | 6 +++--- ...fs3_collections_items_as-areas-short-name_4326.json | 2 +- ...wfs3_collections_items_testlayer_èé_crs_3857.json | 2 +- .../qgis_server/api/test_wfs3_collections_project.html | 2 +- 10 files changed, 33 insertions(+), 18 deletions(-) diff --git a/src/server/services/wfs3/qgswfs3handlers.cpp b/src/server/services/wfs3/qgswfs3handlers.cpp index afea557d3ed..f36646df6dd 100644 --- a/src/server/services/wfs3/qgswfs3handlers.cpp +++ b/src/server/services/wfs3/qgswfs3handlers.cpp @@ -370,11 +370,11 @@ void QgsWfs3ConformanceHandler::handleRequest( const QgsServerApiContext &contex { { "links", links( context ) }, { - "conformsTo", { "http://www.opengis.net/spec/wfs-1/3.0/req/core", - "http://www.opengis.net/spec/wfs-1/3.0/req/oas30", - "http://www.opengis.net/spec/wfs-1/3.0/req/html", - "http://www.opengis.net/spec/wfs-1/3.0/req/gmlsf2", - "http://www.opengis.net/spec/wfs-1/3.0/req/geojson" + "conformsTo", { + "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core", + "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30", + "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/html", + "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson" } } }; diff --git a/tests/testdata/qgis_server/api/test_wfs3_api_project.json b/tests/testdata/qgis_server/api/test_wfs3_api_project.json index 5013f2e3409..82a52b0781a 100644 --- a/tests/testdata/qgis_server/api/test_wfs3_api_project.json +++ b/tests/testdata/qgis_server/api/test_wfs3_api_project.json @@ -1466,7 +1466,7 @@ Content-Type: application/openapi+json;version=3.0 }, "servers": [ { - "url": "http://server.qgis.org/wfs3" + "url": "http://server.qgis.org/wfs3/" } ], "tags": [ @@ -1478,5 +1478,6 @@ Content-Type: application/openapi+json;version=3.0 "description": "Access to data (features).", "name": "Features" } - ] + ], + "timeStamp": "2019-07-05T12:27:07Z" } \ No newline at end of file diff --git a/tests/testdata/qgis_server/api/test_wfs3_collection_points_timefilters.json b/tests/testdata/qgis_server/api/test_wfs3_collection_points_timefilters.json index 5481d7fb7de..b81c66f697e 100644 --- a/tests/testdata/qgis_server/api/test_wfs3_collection_points_timefilters.json +++ b/tests/testdata/qgis_server/api/test_wfs3_collection_points_timefilters.json @@ -53,8 +53,14 @@ Content-Type: application/json "rel": "items", "title": "points", "type": "text/html" + }, + { + "href": "http://server.qgis.org/?request=DescribeFeatureType&typenames=points&service=WFS&version=2.0", + "rel": "describedBy", + "title": "Schema for points", + "type": "application/xml" } ], - "timeStamp": "2019-10-20T16:29:01Z", + "timeStamp": "2019-07-05T12:27:07Z", "title": "points" } \ No newline at end of file diff --git a/tests/testdata/qgis_server/api/test_wfs3_collection_testlayer_èé.html b/tests/testdata/qgis_server/api/test_wfs3_collection_testlayer_èé.html index db7d419df8f..3a70c2c0aa0 100644 --- a/tests/testdata/qgis_server/api/test_wfs3_collection_testlayer_èé.html +++ b/tests/testdata/qgis_server/api/test_wfs3_collection_testlayer_èé.html @@ -26,9 +26,9 @@