Changeset 752 for trunk/zoo-project/zoo-kernel
- Timestamp:
- Mar 5, 2016, 2:37:06 PM (9 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/doc/index.dox
r608 r752 13 13 Home: http://www.zoo-project.org<br> 14 14 Download: 15 <a href="http://zoo-project.org/ site/Downloads#Downloads">http at zoo-project.org</a>,16 <a href="http:// zoo-project.org/site/Downloads#Fordevelopers">svn at zoo-project.org</a>15 <a href="http://zoo-project.org/Code/Download">http at zoo-project.org</a>, 16 <a href="http://svn.zoo-project.org/svn/">svn at zoo-project.org</a> 17 17 18 18 This documentation describes the ZOO-Project C-API. You can start your visit by the Data Structures link above which details all available structures in ZOO-Project. The Files link presents all source files used to generate this documentation. -
trunk/zoo-project/zoo-kernel/service_internal_js.c
r640 r752 458 458 while(isArray==NULL && tmpm!=NULL){ 459 459 jsval jsstr; 460 if( (isBinary!=NULL && strncasecmp(tmpm->name,"value",5)==0))460 if(isBinary!=NULL && strncasecmp(tmpm->name,"value",5)==0) 461 461 jsstr = STRING_TO_JSVAL(JS_NewStringCopyN(cx,tmpm->value,atoi(isBinary->value))); 462 462 else … … 473 473 JSObject* values=JS_NewArrayObject( cx, cnt, NULL ); 474 474 JSObject* mvalues=JS_NewArrayObject( cx, cnt, NULL ); 475 map *tmpm1,*tmpm2 ;475 map *tmpm1,*tmpm2,*tmpm3; 476 476 int i=0; 477 477 for(i=0;i<cnt;i++){ 478 478 tmpm1=getMapArray(t,"value",i); 479 479 tmpm2=getMapArray(t,tmap->name,i); 480 tmpm3=getMapArray(t,"size",i); 480 481 if(tmpm1!=NULL){ 481 jsval jsstr = STRING_TO_JSVAL(JS_NewStringCopyN(cx,tmpm1->value,strlen(tmpm1->value))); 482 jsval jsstr; 483 if(tmpm3!=NULL) 484 jsstr = STRING_TO_JSVAL(JS_NewStringCopyN(cx,tmpm1->value,atoi(tmpm3->value))); 485 else 486 jsstr = STRING_TO_JSVAL(JS_NewStringCopyN(cx,tmpm1->value,strlen(tmpm1->value))); 482 487 JS_SetElement( cx, values, i, &jsstr ); 483 488 } … … 491 496 JS_SetProperty(cx, res,"value",&jvalues); 492 497 JS_SetProperty(cx, res,tmap->name,&jmvalues); 498 while(tmpm!=NULL){ 499 if(strncasecmp(tmpm->name,"value",5)!=0 && strncasecmp(tmpm->name,"size",4)!=0 && strncasecmp(tmpm->name,tmap->name,strlen(tmap->name))!=0){ 500 jsval jsstr = STRING_TO_JSVAL(JS_NewStringCopyN(cx,tmpm->value,strlen(tmpm->value))); 501 JS_SetProperty(cx, res, tmpm->name,&jsstr); 502 } 503 #ifdef JS_DEBUG 504 fprintf(stderr,"[JS] %s => %s\n",tmpm->name,tmpm->value); 505 #endif 506 tmpm=tmpm->next; 507 } 493 508 } 494 509 return res; -
trunk/zoo-project/zoo-kernel/service_internal_ms.c
r640 r752 958 958 } 959 959 } 960 else{ 961 if(nBandsI==1){ 962 myLayer->offsite.red=0; 963 myLayer->offsite.green=0; 964 myLayer->offsite.blue=0; 965 } 966 msLayerAddProcessing(myLayer,"RESAMPLE=BILINEAR"); 967 } 960 968 } 961 969 if( strlen(GDALGetRasterUnitType(hBand)) > 0 ){ -
trunk/zoo-project/zoo-kernel/service_internal_saga.c
r653 r752 559 559 } 560 560 else{ 561 #ifdef HAVE_LIBKML 561 562 addToMap(arg,"FORMAT","LIBKML"); 563 #else 564 addToMap(arg,"FORMAT","KML"); 565 #endif 562 566 } 563 567 free(fext); -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r745 r752 1024 1024 setMapInMaps(m,"main","serverAddress",tmpUrl); 1025 1025 } 1026 1027 // CORS Support 1028 if(strncasecmp(cgiRequestMethod,"OPTIONS",7)==0){ 1029 map* cors=getMapFromMaps(m,"main","cors"); 1030 if(cors!=NULL && strncasecmp(cors->value,"true",4)==0){ 1031 char *encoding=getEncoding(m); 1032 printHeaders(m); 1033 printf("Content-Type: text/plain; charset=%s\r\nStatus: 200 OK\r\n\r\n",encoding); 1034 printf(_("CORS is enabled.\r\n")); 1035 freeMaps (&m); 1036 free (m); 1037 fflush (stdout); 1038 return 3; 1039 } 1040 } 1026 1041 1027 1042 //Check for minimum inputs
Note: See TracChangeset
for help on using the changeset viewer.