From f0fefd5f90bba4e463014448d059f8a8b860ded7 Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Fri, 12 Apr 2024 00:14:42 +1000 Subject: [PATCH] Restore GPL prefix --- src/copcat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/copcat.cpp b/src/copcat.cpp index 42c83b3..b1bfaee 100644 --- a/src/copcat.cpp +++ b/src/copcat.cpp @@ -8,8 +8,9 @@ const MString CopernicusCatalog::caturl = "https://stac.marine.copernicus.eu/met CopernicusCatalog::CopernicusCatalog() { // Cache - michlib::GPL.UsePrefix("COPERNICUS"); + auto oldprefix = michlib::GPL.UsePrefix("COPERNICUS"); cache.reset(CreateCache(michlib::GPL.ParameterSValue("Cache", ""))); + michlib::GPL.UsePrefix(oldprefix); if(!cache) { michlib::errmessage("Can't init cache");