Skip to content
Permalink
Browse files
Some wfs servers don't like srsname in DescribeFeatureType request (t…
…icket #5241)
  • Loading branch information
mhugent committed Feb 21, 2013
1 parent ee4cb3d commit d190b2316b25b6c30e3416a61cf5542d1fd6e227
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/providers/wfs/qgswfsprovider.cpp
@@ -847,10 +847,11 @@ int QgsWFSProvider::describeFeatureTypeGET( const QString& uri, QString& geometr
}

mNetworkRequestFinished = false;

QString describeFeatureUri = uri;
describeFeatureUri.replace( QString( "GetFeature" ), QString( "DescribeFeatureType" ) );
QNetworkRequest request( describeFeatureUri );
QUrl describeFeatureUrl( uri );
describeFeatureUrl.removeQueryItem( "SRSNAME" );
describeFeatureUrl.removeQueryItem( "REQUEST" );
describeFeatureUrl.addQueryItem( "REQUEST", "DescribeFeatureType" );
QNetworkRequest request( describeFeatureUrl.toString() );
QNetworkReply* reply = QgsNetworkAccessManager::instance()->get( request );
connect( reply, SIGNAL( finished() ), this, SLOT( networkRequestFinished() ) );
while ( !mNetworkRequestFinished )

0 comments on commit d190b23

Please sign in to comment.