Ignore:
Timestamp:
Nov 16, 2018, 3:09:05 PM (5 years ago)
Author:
djay
Message:

Add support for output style definition depending on geometry type (msStylePoly, msStylePoint, msStrylLine). Upload shared data in remote_persitent_data_path rather than remote_data_path (used for not shared data). In case output data should be published and the data is empty (nb_pixels or nb_features is set to 0) then, the ZOO-Kernel returns an ExceptionReport? with an Exception for every output.

File:
1 edited

Legend:

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

    r887 r888  
    320320
    321321  map* targetPathMap=getMapFromMaps(*main_conf,configurationId,"remote_data_path");
     322  map* targetPersistentPathMap=getMapFromMaps(*main_conf,configurationId,"remote_persistent_data_path");
    322323 
    323324  pthread_t threads_pool[50];
     
    362363          for(i=0;i<len;i++){
    363364            map* tmp=getMapArray(input->content,"cache_file",i);
     365            map* origin=getMapArray(input->content,"origin",i);
    364366            char* targetName=strrchr(tmp->value,'/');
    365             char *targetPath=(char*)malloc((strlen(targetPathMap->value)+strlen(targetName)+2)*sizeof(char));
    366             sprintf(targetPath,"%s/%s",targetPathMap->value,targetName);
     367            char *targetPath;
     368            if(origin!=NULL && strcasecmp(origin->value,"SHARED")==0 && targetPersistentPathMap!=NULL){
     369              targetPath=(char*)malloc((strlen(targetPersistentPathMap->value)+strlen(targetName)+2)*sizeof(char));
     370              sprintf(targetPath,"%s/%s",targetPersistentPathMap->value,targetName);
     371            }
     372            else{
     373              targetPath=(char*)malloc((strlen(targetPathMap->value)+strlen(targetName)+2)*sizeof(char));
     374              sprintf(targetPath,"%s/%s",targetPathMap->value,targetName);
     375            }
    367376            setMapArray(input->content,"targetPath",i,targetPath);
    368377            setMapArray(input->content,"localPath",i,tmp->value);
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