Skip to content

Commit

Permalink
More save handling for WMS requests. Added an error string although t…
Browse files Browse the repository at this point in the history
…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@9751 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 7, 2008
1 parent 6925946 commit 7bf27ff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -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";
Expand Down

0 comments on commit 7bf27ff

Please sign in to comment.