- Timestamp:
- Mar 5, 2016, 2:37:06 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/kernel/configuration.rst
r725 r752 43 43 msOgcVersion=1.0.0 44 44 tmpUrl=http:/localhost/temp/ 45 cors=false 45 46 46 47 [identification] … … 76 77 * ``dataPath``: Path to the directory where data files are stored (used to store mapfiles and data when MapServer support is activated). 77 78 * ``tmpPath``: Path to the directory where temporary files are stored (such as *ExecuteResponse* when *storeExecuteResponse* is set to true). 79 * ``tmpUrl``: URL to access the temporary files directory (cf. ``tmpPath``). 78 80 * ``cacheDir``: Path to the directory where cached request files [#f1]_ are stored (optional). 79 81 * ``serverAddress``: URL to the ZOO-Kernel instance. 80 * ``tmpUrl``: URL of the temporary files directory.81 82 * ``mapservAddress``: URL to the MapServer instance (optional). 82 83 * ``msOgcVersion``: Version of all supported OGC Web Services output [#f2]_ 83 84 (optional). 84 85 * ``lang``: Supported natural languages separated by a coma (the first is the default one), 86 * ``cors``: Define if the ZOO-Kernel should support `Cross-Origin 87 Resource Sharing <https://www.w3.org/TR/cors/>`__. If this 88 paramater is not defined, then the ZOO-Kernel won't support CORS. 89 90 In case you have activated the MapServer support, please refer to 91 :ref:`this specific section <kernel-mapserver-main.cfg>`. 85 92 86 93 … … 117 124 and notice the specific header *X-Powered-By: Zoo-Project@Trac*. 118 125 126 In case you want to allow CORS support for POST requests coming from 127 ``myhost.net``, then you should define the following minimal 128 parameters in this section: 129 130 .. code-block:: guess 131 :linenos: 132 133 Access-Control-Allow-Origin=myhost.net 134 Access-Control-Allow-Methods=POST 135 Access-Control-Allow-Headers=content-type 136 137 119 138 env section 120 139 ............................... … … 132 151 [env] 133 152 DISPLAY=:1 153 154 In case you have activated the OTB support, please refer to :ref:`this 155 specific section <kernel-orfeotoolbox-main.cfg>`. 134 156 135 157 lenv section -
trunk/docs/kernel/mapserver.rst
r725 r752 107 107 cp zoo_loader.cgi /usr/lib/cgi-bin 108 108 109 110 .. _kernel-mapserver-main.cfg: 109 111 110 112 Main configuration file -
trunk/docs/kernel/orfeotoolbox.rst
r725 r752 57 57 .................................... 58 58 59 .. _kernel-orfeotoolbox-main.cfg: 60 59 61 Main configuration file 60 62 ************************* -
trunk/workshop/index.rst
r725 r752 12 12 :maxdepth: 1 13 13 14 2015/index 14 15 2014/index 15 16 2013/index -
trunk/zoo-project/HISTORY.txt
r729 r752 1 Version 1.5.0-dev 1 Version 1.6.0-dev 2 * Add CORS support 3 * Fix issue when dealing with Array in JavaScript support 4 * Update the Centos installation procedure. 5 * Small fixes in java support. 6 * Fix issue when XML request contains empty nodes for inputs 7 * Add status update for contour lines computation 8 * Fix FASTCGI location using the --with-fastcgi option. 9 * Redefined the API function addToMapWithSize to fix problem with Python/PHP support. 10 11 Version 1.5.0 2 12 * Complete rewrite of the documentation to use modern style 3 13 * Fix asynchronous POST request on WIN32 platforms -
trunk/zoo-project/zoo-client/lib/tpl/payload_Execute.mustache
r517 r752 35 35 <wps:Input> 36 36 <ows:Identifier>{{identifier}}</ows:Identifier> 37 <wps:Reference xlink:href="{{href}}" method="{{method}}" >37 <wps:Reference xlink:href="{{href}}" method="{{method}}" {{#schema}} schema="{{shema}}"{{/schema}}{{#mimeType}} mimeType="{{mimeType}}"{{/mimeType}}{{#encoding}} encoding="{{encoding}}"{{/encoding}}> 38 38 {{#headers}} 39 39 <wps:Header key="{{key}}" value="{{value}}" /> … … 60 60 {{#RawDataOutput}} 61 61 {{#DataOutputs}} 62 <wps:RawDataOutput mimeType="{{mimeType}}">62 <wps:RawDataOutput {{#mimeType}}mimeType="{{mimeType}}"{{/mimeType}}> 63 63 <ows:Identifier>{{identifier}}</ows:Identifier> 64 64 </wps:RawDataOutput> -
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.