Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
improved last commit
- Loading branch information
Showing
with
3 additions
and
5 deletions.
-
+3
−5
src/providers/wms/qgswmsprovider.cpp
|
@@ -379,14 +379,14 @@ QImage* QgsWmsProvider::draw( QgsRectangle const & viewExtent, int pixelWidth, |
|
|
crsKey = "CRS"; |
|
|
} |
|
|
|
|
|
int dcpTypeSize = mCapabilities.capability.request.getMap.dcpType.size(); |
|
|
if(dcpTypeSize < 1) |
|
|
std::vector<QgsWmsDcpTypeProperty> dcpType = mCapabilities.capability.request.getMap.dcpType; |
|
|
if(dcpType.size() < 1) |
|
|
{ |
|
|
mError = tr("Could not determine URL for GetMap from the WMS capabilities response"); |
|
|
return 0; |
|
|
} |
|
|
|
|
|
QString url = prepareUri( mCapabilities.capability.request.getMap.dcpType.front().http.get.onlineResource.xlinkHref ); |
|
|
QString url = prepareUri( dcpType.front().http.get.onlineResource.xlinkHref ); |
|
|
|
|
|
url += "SERVICE=WMS"; |
|
|
url += "&"; |
|
@@ -413,8 +413,6 @@ QImage* QgsWmsProvider::draw( QgsRectangle const & viewExtent, int pixelWidth, |
|
|
url += "TRANSPARENT=TRUE"; |
|
|
} |
|
|
|
|
|
qWarning( url.toUtf8() ); |
|
|
|
|
|
// cache some details for if the user wants to do an identifyAsHtml() later |
|
|
mGetFeatureInfoUrlBase = baseUrl; |
|
|
mGetFeatureInfoUrlBase += "SERVICE=WMS"; |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.