Skip to content

Commit 438a8df

Browse files
committedJul 23, 2018
Cleaning GetCapabilities doc for WFS
1 parent f55d9c1 commit 438a8df

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
 

‎src/server/services/wfs/qgswfsutils.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "qgsogcutils.h"
2525
#include "qgsconfigcache.h"
2626
#include "qgsserverprojectutils.h"
27+
#include "qgswfsparameters.h"
2728

2829
namespace QgsWfs
2930
{
@@ -44,14 +45,14 @@ namespace QgsWfs
4445
if ( href.isEmpty() )
4546
{
4647
QUrl url = request.url();
47-
QUrlQuery q( url );
4848

49-
q.removeAllQueryItems( QStringLiteral( "REQUEST" ) );
50-
q.removeAllQueryItems( QStringLiteral( "VERSION" ) );
51-
q.removeAllQueryItems( QStringLiteral( "SERVICE" ) );
52-
q.removeAllQueryItems( QStringLiteral( "_DC" ) );
49+
QgsWfsParameters params;
50+
params.load( QUrlQuery( url ) );
51+
params.remove( QgsServerParameter::REQUEST );
52+
params.remove( QgsServerParameter::VERSION_SERVICE );
53+
params.remove( QgsServerParameter::SERVICE );
5354

54-
url.setQuery( q );
55+
url.setQuery( params.urlQuery() );
5556
href = url.toString( QUrl::FullyDecoded );
5657
}
5758

0 commit comments

Comments
 (0)