|
|
@ -8,8 +8,9 @@ const MString CopernicusCatalog::caturl = "https://stac.marine.copernicus.eu/met |
|
|
|
CopernicusCatalog::CopernicusCatalog() |
|
|
|
CopernicusCatalog::CopernicusCatalog() |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Cache
|
|
|
|
// Cache
|
|
|
|
michlib::GPL.UsePrefix("COPERNICUS"); |
|
|
|
auto oldprefix = michlib::GPL.UsePrefix("COPERNICUS"); |
|
|
|
cache.reset(CreateCache(michlib::GPL.ParameterSValue("Cache", ""))); |
|
|
|
cache.reset(CreateCache(michlib::GPL.ParameterSValue("Cache", ""))); |
|
|
|
|
|
|
|
michlib::GPL.UsePrefix(oldprefix); |
|
|
|
if(!cache) |
|
|
|
if(!cache) |
|
|
|
{ |
|
|
|
{ |
|
|
|
michlib::errmessage("Can't init cache"); |
|
|
|
michlib::errmessage("Can't init cache"); |
|
|
|