Ignore:
Timestamp:
Nov 21, 2017, 10:24:14 AM (6 years ago)
Author:
djay
Message:

HPC support update. Add inputs for create options in Gdal_Dem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/meta_sql.c

    r850 r854  
    297297 */
    298298elements* extractInput(maps* conf,OGRFeature *input){
    299   fprintf(stderr,"************************* %s %s %d\n\n",input->GetFieldAsString( 0 ),__FILE__,__LINE__);
    300   fprintf(stderr,"************************* %s %s %d\n\n",input->GetFieldAsString( 1 ),__FILE__,__LINE__);
    301299  elements* res=createElements(input->GetFieldAsString( 1 ));
    302300  res->content=createMap("title",input->GetFieldAsString( 2 ));
     
    348346  fillMetadata(conf,&res->metadata,output->GetFieldAsString( 0 ));
    349347  fillAdditionalParameters(conf,&res->additional_parameters,output->GetFieldAsString( 0 ));
    350   res->defaults=NULL;
    351   res->supported=NULL;
    352   res->child=NULL;
    353   res->next=NULL;
    354348  int ioCnt=fillLiteralData(conf,res,output,"Output");
    355349  if(ioCnt==0)
     
    361355  free(nestedOutputsQuery);
    362356  while( (noutput = noutputs->GetNextFeature()) != NULL ){
    363     elements* nout=extractInput(conf,noutput);
     357    elements* nout=extractOutput(conf,noutput);
    364358    addToElements(&res->child,nout);
    365359    freeElements(&nout);
     
    413407        elements* in=extractInput(conf,input);
    414408        if(in!=NULL){
    415           if(s->inputs==NULL)
    416             s->inputs=dupElements(in);
    417           else
    418             addToElements(&s->inputs,in);
     409          addToElements(&s->inputs,in);
    419410          freeElements(&in);
    420411          free(in);
     
    431422      while( (output = outputs->GetNextFeature()) != NULL ){
    432423        elements* in=extractOutput(conf,output);
    433         if(s->outputs==NULL)
    434           s->outputs=dupElements(in);
    435         else
     424        if(in!=NULL){
    436425          addToElements(&s->outputs,in);
    437         freeElements(&in);
    438         free(in);
     426          freeElements(&in);
     427          free(in);
     428        }
    439429        OGRFeature::DestroyFeature( output );
    440430      }
     
    463453                                     service *), int minimal ){
    464454  int result=0;
    465   _init_sql(conf,"metadb");
    466   if(getMapFromMaps(conf,"lenv","dbIssue")!=NULL)
     455  result=_init_sql(conf,"metadb");
     456  if(getMapFromMaps(conf,"lenv","dbIssue")!=NULL || result < 0)
    467457    return -1;
    468458  // Fetch every services
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png