[QGIS Commit] r9751 - trunk/qgis/src/providers/wms

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Dec 7 09:30:48 EST 2008


Author: mhugent
Date: 2008-12-07 09:30:47 -0500 (Sun, 07 Dec 2008)
New Revision: 9751

Modified:
   trunk/qgis/src/providers/wms/qgswmsprovider.cpp
Log:
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

Modified: trunk/qgis/src/providers/wms/qgswmsprovider.cpp
===================================================================
--- trunk/qgis/src/providers/wms/qgswmsprovider.cpp	2008-12-07 13:46:00 UTC (rev 9750)
+++ trunk/qgis/src/providers/wms/qgswmsprovider.cpp	2008-12-07 14:30:47 UTC (rev 9751)
@@ -379,6 +379,13 @@
     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";



More information about the QGIS-commit mailing list