mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-07 04:00:37 -06:00
Feature/globe speedup (#862)
* Updated GDAL version to 2.4.1 * Add vtune performance commands * Add Nvtools performance commands * Add warning if GDAL dataset could not be loaded
This commit is contained in:
@@ -610,6 +610,10 @@ void GlobeBrowsingModule::loadWMSCapabilities(std::string name, std::string glob
|
||||
GA_ReadOnly
|
||||
);
|
||||
|
||||
if (!dataset) {
|
||||
LWARNING("Could not open dataset: " + downloadUrl);
|
||||
return Capabilities();
|
||||
}
|
||||
char** subDatasets = GDALGetMetadata(dataset, "SUBDATASETS");
|
||||
const int nSubdatasets = CSLCount(subDatasets);
|
||||
Capabilities cap = parseSubDatasets(subDatasets, nSubdatasets);
|
||||
|
||||
Reference in New Issue
Block a user