Changeset 564 for trunk/zoo-project/zoo-kernel
- Timestamp:
- Feb 9, 2015, 5:16:06 PM (10 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.c
r554 r564 2459 2459 void readGeneratedFile(maps* m,map* content,char* filename){ 2460 2460 FILE * file=fopen(filename,"rb"); 2461 if(file==NULL){ 2462 fprintf(stderr,"Failed to open file %s for reading purpose.\n",filename); 2463 setMapInMaps(m,"lenv","message","Unable to read produced file. Please try again later"); 2464 return ; 2465 } 2461 2466 fseek(file, 0, SEEK_END); 2462 2467 long count = ftell(file); … … 2464 2469 struct stat file_status; 2465 2470 stat(filename, &file_status); 2466 if(file==NULL){2467 fprintf(stderr,"Failed to open file %s for reading purpose.\n",filename);2468 setMapInMaps(m,"lenv","message","Unable to read produced file. Please try again later");2469 return ;2470 }2471 2471 map* tmpMap1=getMap(content,"value"); 2472 2472 if(tmpMap1==NULL){ -
trunk/zoo-project/zoo-kernel/service_internal_otb.c
r561 r564 190 190 ext="shp"; 191 191 else 192 if(strncasecmp(tmpVal->value,"application/vnd.google-earth.kml+xml",36)==0) 193 ext="kml"; 192 if(strncasecmp(tmpVal->value,"application/vnd.google-earth.kml+xml",36)==0) 193 ext="kml"; 194 else 195 if(strncasecmp(tmpVal->value,"application/vnd.google-earth.kmz",32)==0) 196 ext="kmz"; 197 194 198 } 195 199 sprintf(tmp,"%s/%s_%s.%s",tmpPath->value,s->name,tmpSid->value,ext);
Note: See TracChangeset
for help on using the changeset viewer.