Skip to content
Permalink
Browse files
Insert version number from capabilities document into GetMap request
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6982 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jun 5, 2007
1 parent 13a755b commit 3dbd11b2c8a4afc0732e62ef09e3758619669b65
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/wms/qgswmsprovider.cpp
@@ -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 += "&";
@@ -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 += "&";

0 comments on commit 3dbd11b

Please sign in to comment.