Skip to content

Commit

Permalink
Some wfs servers don't like srsname in DescribeFeatureType request (t…
Browse files Browse the repository at this point in the history
…icket #5241)
  • Loading branch information
mhugent committed Feb 21, 2013
1 parent ee4cb3d commit d190b23
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/providers/wfs/qgswfsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit d190b23

Please sign in to comment.