- Timestamp:
- Aug 31, 2017, 4:14:46 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/service_internal_hpc.c
r850 r851 137 137 } 138 138 } 139 140 139 addToElements(&cur->child,tmp[0]); 141 140 addToElements(&cur->child,tmp[1]); … … 301 300 char *targetPath=(char*)malloc((strlen(targetPathMap->value)+strlen(targetName)+2)*sizeof(char)); 302 301 sprintf(targetPath,"%s/%s",targetPathMap->value,targetName); 302 free(targetName); 303 303 setMapInMaps(*real_outputs,input->name,"generated_file",targetPath); 304 304 // We should verify if any optional tag for output is required … … 337 337 char *targetPath=(char*)malloc((strlen(targetPathMap->value)+strlen(targetName)+2)*sizeof(char)); 338 338 sprintf(targetPath,"%s/%s",targetPathMap->value,targetName); 339 free(targetName); 339 340 addToMap(input->content,"generated_file",targetPath); 340 341 // We should verify if any optional tag for output is required … … 499 500 return -1; 500 501 } 502 free(targetPath); 501 503 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); 502 504 fflush(stderr); … … 591 593 setMapInMaps(output->child,"download_link","generated_file",targetPath); 592 594 setMapInMaps(output->child,"download_link","useMapserver","false"); 593 setMapInMaps(output->child,"WMS_LINK","generated_file",targetPath); 594 setMapInMaps(output->child,"WMS_LINK","useMapserver","true"); 595 setMapInMaps(output->child,"WCS_LINK","generated_file",targetPath); 596 setMapInMaps(output->child,"WCS_LINK","useMapserver","true"); 595 setMapInMaps(output->child,"wms_link","generated_file",targetPath); 596 setMapInMaps(output->child,"wms_link","useMapserver","true"); 597 setMapInMaps(output->child,"wms_link","msOgc","WMS"); 598 setMapInMaps(output->child,"wms_link","requestedMimeType","image/png"); 599 setMapInMaps(output->child,"wcs_link","generated_file",targetPath); 600 setMapInMaps(output->child,"wcs_link","useMapserver","true"); 597 601 } 602 free(targetPath); 598 603 } 599 604 } 600 605 input=input->next; 601 606 } 602 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__);603 fflush(stderr);604 invokeCallback(m,NULL,outputs,5,1);605 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__);606 fflush(stderr);607 607 } 608 608 //free(buf);
Note: See TracChangeset
for help on using the changeset viewer.