Skip to content

Commit

Permalink
wms provider: fix feature info (fixes #9630)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 27, 2014
1 parent 89b50df commit 33a8b63
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -90,7 +90,6 @@ QgsWmsProvider::QgsWmsProvider( QString const& uri, const QgsWmsCapabilities* ca
, mCachedImage( 0 )
, mCachedViewExtent( 0 )
, mExtentDirty( true )
, mGetFeatureInfoUrlBase( "" )
, mTileReqNo( 0 )
, mTileLayer( 0 )
, mTileMatrixSet( 0 )
Expand Down Expand Up @@ -529,8 +528,6 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, i

// cache some details for if the user wants to do an identifyAsHtml() later

mGetFeatureInfoUrlBase = mSettings.mIgnoreGetFeatureInfoUrl ? mSettings.mBaseUrl : getFeatureInfoUrl();

emit statusChanged( tr( "Getting map via WMS." ) );

QgsWmsImageDownloadHandler handler( dataSourceUri(), url, mSettings.authorization(), mCachedImage );
Expand Down Expand Up @@ -2151,7 +2148,7 @@ QgsRasterIdentifyResult QgsWmsProvider::identify( const QgsPoint & thePoint, Qgs

QgsDebugMsg( "Layer '" + *layers + "' is queryable." );

QUrl requestUrl( mGetFeatureInfoUrlBase );
QUrl requestUrl( mSettings.mIgnoreGetFeatureInfoUrl ? mSettings.mBaseUrl : getFeatureInfoUrl() );
setQueryItem( requestUrl, "SERVICE", "WMS" );
setQueryItem( requestUrl, "VERSION", mCaps.mCapabilities.version );
setQueryItem( requestUrl, "REQUEST", "GetFeatureInfo" );
Expand Down
2 changes: 0 additions & 2 deletions src/providers/wms/qgswmsprovider.h
Expand Up @@ -467,8 +467,6 @@ class QgsWmsProvider : public QgsRasterDataProvider
//! See if calculateExtents() needs to be called before extent() returns useful data
bool mExtentDirty;

//! Base URL for WMS GetFeatureInfo requests
QString mGetFeatureInfoUrlBase;
QString mServiceMetadataURL;

//! tile request number, cache hits and misses
Expand Down

0 comments on commit 33a8b63

Please sign in to comment.