diff --git a/data/globebrowsing_servers.lua b/data/globebrowsing_servers.lua index 1c2de7dc53..c3defef508 100644 --- a/data/globebrowsing_servers.lua +++ b/data/globebrowsing_servers.lua @@ -46,5 +46,3 @@ return { } } - --- https://astrowebmaps.wr.usgs.gov/webmapatlas/Layers/maps.html \ No newline at end of file diff --git a/modules/globebrowsing/globebrowsingmodule.cpp b/modules/globebrowsing/globebrowsingmodule.cpp index 8c4734d395..c1aeefcced 100644 --- a/modules/globebrowsing/globebrowsingmodule.cpp +++ b/modules/globebrowsing/globebrowsingmodule.cpp @@ -83,6 +83,7 @@ #pragma warning (disable : 4251) #endif // _MSC_VER +#include #include #ifdef _MSC_VER @@ -550,10 +551,12 @@ void GlobeBrowsingModule::loadWMSCapabilities(std::string name, std::string glob { auto downloadFunction = [](const std::string& downloadUrl) { LDEBUG("Opening WMS capabilities: " + downloadUrl); + CPLSetConfigOption("GDAL_HTTP_TIMEOUT", "15"); // 3 seconds GDALDatasetH dataset = GDALOpen( downloadUrl.c_str(), GA_ReadOnly ); + CPLSetConfigOption("GDAL_HTTP_TIMEOUT", "3"); // 3 seconds if (!dataset) { LWARNING("Could not open dataset: " + downloadUrl);