Skip to content

Commit

Permalink
Server OAPIF: update conformance classes
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 8, 2019
1 parent 9dbfb6a commit ce48a1a
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 18 deletions.
10 changes: 5 additions & 5 deletions src/server/services/wfs3/qgswfs3handlers.cpp
Expand Up @@ -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"
}
}
};
Expand Down
5 changes: 3 additions & 2 deletions tests/testdata/qgis_server/api/test_wfs3_api_project.json
Expand Up @@ -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": [
Expand All @@ -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"
}
Expand Up @@ -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"
}
Expand Up @@ -26,9 +26,9 @@
<div id="navbar" class="navbar-collapse collapse d-flex justify-content-between align-items-center">
<ol class="breadcrumb bg-light my-0 pl-0">

<li class="breadcrumb-item"><a href="http://server.qgis.org/wfs3" >Landing page</a></li>
<li class="breadcrumb-item"><a href="http://server.qgis.org/wfs3/" >Landing page</a></li>

<li class="breadcrumb-item"><a href="http://server.qgis.org/wfs3/collections" >Collections</a></li>
<li class="breadcrumb-item"><a href="http://server.qgis.org/wfs3/collections/" >Collections</a></li>

<li class="breadcrumb-item active">
A test vector layer èé
Expand Down Expand Up @@ -60,6 +60,8 @@ <h1><a title="View items of: A test vector layer èé" href="
http://server.qgis.org/wfs3/collections/testlayer%20%C3%A8%C3%A9/items.html
">A test vector layer èé</a></h1>
<h3>Available CRSs</h3>
<ul>
Expand Down
Expand Up @@ -48,8 +48,14 @@ Content-Type: application/json
"rel": "items",
"title": "A test vector layer èé",
"type": "text/html"
},
{
"href": "http://server.qgis.org/?request=DescribeFeatureType&typenames=testlayer%20èé&service=WFS&version=2.0",
"rel": "describedBy",
"title": "Schema for A test vector layer èé",
"type": "application/xml"
}
],
"timeStamp": "2019-11-02T15:56:20Z",
"timeStamp": "2019-07-05T12:27:07Z",
"title": "A test vector layer èé"
}
Expand Up @@ -26,7 +26,7 @@
<div id="navbar" class="navbar-collapse collapse d-flex justify-content-between align-items-center">
<ol class="breadcrumb bg-light my-0 pl-0">

<li class="breadcrumb-item"><a href="http://server.qgis.org/wfs3" >Landing page</a></li>
<li class="breadcrumb-item"><a href="http://server.qgis.org/wfs3/" >Landing page</a></li>

<li class="breadcrumb-item active">
Feature collections
Expand Down
Expand Up @@ -290,7 +290,7 @@ Content-Type: application/geo+json
6880002.440273
],
[
1194091.1897780001,
1194091.189778,
6880070.493797
],
[
Expand Down Expand Up @@ -440,7 +440,7 @@ Content-Type: application/geo+json
6882593.73528
],
[
1190969.1369710001,
1190969.136971,
6881661.977825
],
[
Expand Down Expand Up @@ -994,6 +994,6 @@ Content-Type: application/geo+json
],
"numberMatched": 38,
"numberReturned": 10,
"timeStamp": "2019-11-02T15:56:20Z",
"timeStamp": "2019-07-05T12:27:07Z",
"type": "FeatureCollection"
}
Expand Up @@ -994,6 +994,6 @@ Content-Type: application/geo+json
],
"numberMatched": 38,
"numberReturned": 10,
"timeStamp": "2019-11-02T15:56:20Z",
"timeStamp": "2019-07-05T12:27:07Z",
"type": "FeatureCollection"
}
Expand Up @@ -67,6 +67,6 @@ Content-Type: application/geo+json
],
"numberMatched": 3,
"numberReturned": 3,
"timeStamp": "2019-11-02T15:56:20Z",
"timeStamp": "2019-07-05T12:27:07Z",
"type": "FeatureCollection"
}
Expand Up @@ -26,7 +26,7 @@
<div id="navbar" class="navbar-collapse collapse d-flex justify-content-between align-items-center">
<ol class="breadcrumb bg-light my-0 pl-0">

<li class="breadcrumb-item"><a href="http://server.qgis.org/wfs3" >Landing page</a></li>
<li class="breadcrumb-item"><a href="http://server.qgis.org/wfs3/" >Landing page</a></li>

<li class="breadcrumb-item active">
Feature collections
Expand Down

0 comments on commit ce48a1a

Please sign in to comment.