Skip to content

Commit c6e53de

Browse files
committed
fixes
1 parent 1d033a8 commit c6e53de

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

src/server/qgsserverogcapi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ std::string QgsServerOgcApi::relToString( const Rel &rel )
184184
{
185185
if ( rel == Rel::schema )
186186
{
187-
return "http://www.opengis.net/def/rel/ogc/0.0/schema";
187+
return "http://www.opengis.net/def/rel/ogc/1.0/schema";
188188
}
189189
static const QMetaEnum metaEnum = QMetaEnum::fromType<QgsServerOgcApi::Rel>();
190190
std::string val { metaEnum.valueToKey( rel ) };

src/server/services/wfs3/qgswfs3handlers.cpp

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,10 +1077,10 @@ void QgsWfs3ConformanceHandler::handleRequest( const QgsServerApiContext &contex
10771077
{ "conformsTo",
10781078
{
10791079
// From https://docs.ogc.org/is/19-072/19-072.html
1080-
"http://www.opengis.net/spec/ogcapi-common-1/1.0/req/landing-page"
1080+
"http://www.opengis.net/spec/ogcapi-common-1/1.0/req/landing-page",
10811081
"http://www.opengis.net/spec/ogcapi-common-1/1.0/req/oas30",
10821082
"http://www.opengis.net/spec/ogcapi-common-1/1.0/req/html",
1083-
"http://www.opengis.net/spec/ogcapi-common-1/1.0/req/json"
1083+
"http://www.opengis.net/spec/ogcapi-common-1/1.0/req/json",
10841084

10851085
// From https://docs.ogc.org/is/23-058r2/23-058r2.html
10861086
"http://www.opengis.net/spec/ogcapi-common-3/1.0/conf/schemas",
@@ -1306,12 +1306,15 @@ void QgsWfs3DescribeCollectionHandler::handleRequest( const QgsServerApiContext
13061306
}
13071307

13081308
// Add schemas
1309-
linksList.push_back(
1310-
{ { "href", href( context, u"/schema"_s, QgsServerOgcApi::contentTypeToExtension( QgsServerOgcApi::ContentType::HTML ) ) },
1311-
{ "rel", QgsServerOgcApi::relToString( QgsServerOgcApi::Rel::schema ) },
1312-
{ "type", QgsServerOgcApi::mimeType( QgsServerOgcApi::ContentType::HTML ) },
1313-
{ "title", "Schema of features in '" + title + "'" } }
1314-
);
1309+
for ( const auto ct : { QgsServerOgcApi::ContentType::SCHEMA_JSON, QgsServerOgcApi::ContentType::HTML } )
1310+
{
1311+
linksList.push_back(
1312+
{ { "href", href( context, u"/schema"_s, QgsServerOgcApi::contentTypeToExtension( ct ) ) },
1313+
{ "rel", QgsServerOgcApi::relToString( QgsServerOgcApi::Rel::schema ) },
1314+
{ "type", QgsServerOgcApi::mimeType( ct ) },
1315+
{ "title", "Schema of features in '" + title + "' as " + QgsServerOgcApi::contentTypeToStdString( ct ) } }
1316+
);
1317+
}
13151318

13161319

13171320
#if 0

0 commit comments

Comments
 (0)