Browse Source

Credentials and proxy for accessing NEMO data can only be in the configuration file.

interpolate
Michael Uleysky 2 years ago
parent
commit
ba994af2ca
  1. 10
      src/odm.cpp

10
src/odm.cpp

@ -61,13 +61,9 @@ int main(int argc, char** argv)
NEMOData ndata; NEMOData ndata;
MString dataset = args["dataset"]; MString dataset = args["dataset"];
if(!dataset.Exist()) dataset = "DT"; if(!dataset.Exist()) dataset = "DT";
MString cred = args["cred"];
if(!cred.Exist()) cred = GPL.ParameterSValue("COPERNICUS_USER", ""); MString cred = GPL.ParameterSValue("COPERNICUS_USER", "");
MString proxy; MString proxy = GPL.ParameterSValue("COPERNICUS_PROXY", "");
if(args.contains("proxy"))
MString proxy = args["proxy"];
else
proxy = GPL.ParameterSValue("COPERNICUS_PROXY", "");
if(!ndata.Open(dataset, cred, proxy)) if(!ndata.Open(dataset, cred, proxy))
{ {

Loading…
Cancel
Save