Skip to content
Permalink
Browse files

More save handling for WMS requests. Added an error string although t…

…here 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
  • Loading branch information
mhugent
mhugent committed Dec 7, 2008
1 parent 2c02b7e commit e0a19f5423e12c31039150146b97f1ce44a7249d
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/providers/wms/qgswmsprovider.cpp
@@ -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";

0 comments on commit e0a19f5

Please sign in to comment.
You can’t perform that action at this time.