Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Insert version number from capabilities document into GetMap request
git-svn-id: http://svn.osgeo.org/qgis/trunk@6982 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jun 5, 2007
1 parent 2722199 commit bb92cf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -445,7 +445,7 @@ QImage* QgsWmsProvider::draw(QgsRect const & viewExtent, int pixelWidth, int pi

url += "SERVICE=WMS";
url += "&";
url += "VERSION=1.1.1";
url += "VERSION=" + mCapabilities.version;
url += "&";
url += "REQUEST=GetMap";
url += "&";
Expand Down Expand Up @@ -474,7 +474,7 @@ QImage* QgsWmsProvider::draw(QgsRect const & viewExtent, int pixelWidth, int pi
mGetFeatureInfoUrlBase = baseUrl;
mGetFeatureInfoUrlBase += "SERVICE=WMS";
mGetFeatureInfoUrlBase += "&";
mGetFeatureInfoUrlBase += "VERSION=1.1.1";
mGetFeatureInfoUrlBase += "VERSION=" + mCapabilities.version;
mGetFeatureInfoUrlBase += "&";
mGetFeatureInfoUrlBase += "REQUEST=GetFeatureInfo";
mGetFeatureInfoUrlBase += "&";
Expand Down

0 comments on commit bb92cf4

Please sign in to comment.