Skip to content

Commit

Permalink
Cleaning GetCapabilities doc for WFS
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Jul 23, 2018
1 parent f55d9c1 commit 438a8df
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/server/services/wfs/qgswfsutils.cpp
Expand Up @@ -24,6 +24,7 @@
#include "qgsogcutils.h"
#include "qgsconfigcache.h"
#include "qgsserverprojectutils.h"
#include "qgswfsparameters.h"

namespace QgsWfs
{
Expand All @@ -44,14 +45,14 @@ namespace QgsWfs
if ( href.isEmpty() )
{
QUrl url = request.url();
QUrlQuery q( url );

q.removeAllQueryItems( QStringLiteral( "REQUEST" ) );
q.removeAllQueryItems( QStringLiteral( "VERSION" ) );
q.removeAllQueryItems( QStringLiteral( "SERVICE" ) );
q.removeAllQueryItems( QStringLiteral( "_DC" ) );
QgsWfsParameters params;
params.load( QUrlQuery( url ) );
params.remove( QgsServerParameter::REQUEST );
params.remove( QgsServerParameter::VERSION_SERVICE );
params.remove( QgsServerParameter::SERVICE );

url.setQuery( q );
url.setQuery( params.urlQuery() );
href = url.toString( QUrl::FullyDecoded );
}

Expand Down

0 comments on commit 438a8df

Please sign in to comment.