mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
More save handling for WMS requests. Added an error string although there is string freeze, because the string is not at a visible place in the gui. Fixes bug #1434
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9751 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
2c02b7eb0f
commit
e0a19f5423
@ -379,6 +379,13 @@ QImage* QgsWmsProvider::draw( QgsRectangle const & viewExtent, int pixelWidth,
|
||||
crsKey = "CRS";
|
||||
}
|
||||
|
||||
int dcpTypeSize = mCapabilities.capability.request.getMap.dcpType.size();
|
||||
if(dcpTypeSize < 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 );
|
||||
|
||||
url += "SERVICE=WMS";
|
||||
|
Loading…
x
Reference in New Issue
Block a user