Changeset 955
- Timestamp:
- Sep 20, 2019, 5:14:48 PM (5 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/caching.c
r921 r955 25 25 #include <openssl/md5.h> 26 26 #include <openssl/evp.h> 27 #include "caching.h"28 27 #include "service.h" 29 28 #include "service_internal.h" 30 29 #include "response_print.h" 30 #include "caching.h" 31 31 #ifdef MS_FORCE_LOCAL_FILE_USE 32 32 #include "ogr_api.h" -
trunk/zoo-project/zoo-kernel/response_print.c
r949 r955 23 23 */ 24 24 25 #include "response_print.h" 25 26 #ifdef USE_MS 26 27 #include "service_internal_ms.h" … … 34 35 #include "service_internal.h" 35 36 #include "server_internal.h" 36 #include "response_print.h"37 37 38 38 #ifndef WIN32 -
trunk/zoo-project/zoo-kernel/service.c
r949 r955 130 130 fflush(file); 131 131 tmp=tmp->next; 132 cnt++; 132 133 if(limit>=0 && cnt==limit) 133 134 tmp=NULL; 134 cnt++;135 135 } 136 136 fflush(file); -
trunk/zoo-project/zoo-kernel/service_callback.c
r926 r955 27 27 */ 28 28 29 #include "service_callback.h"30 29 #include "service_json.h" 31 30 #include "service_internal_ms.h" … … 41 40 #include <libxslt/transform.h> 42 41 #include <libxslt/xsltutils.h> 42 43 #include "service_callback.h" 43 44 44 45 #ifdef __cplusplus -
trunk/zoo-project/zoo-kernel/service_callback.h
r917 r955 32 32 #pragma once 33 33 34 #include <ulinet.h> 34 35 #include <stdio.h> 35 36 #include <ctype.h> 36 37 #include <service.h> 37 #include <ulinet.h>38 38 39 39 #ifdef __cplusplus -
trunk/zoo-project/zoo-kernel/service_internal_hpc.c
r939 r955 1056 1056 maps* tmp=getMaps(*real_outputs,input->name); 1057 1057 char serviceName[9]; 1058 freeMap(&tmp->content);1059 free(tmp->content);1060 tmp->content=NULL;1061 1058 maps* output=getMaps(*real_outputs,input->name); 1062 1059 setMapInMaps(output->child,"download_link","generated_file",targetPath); … … 1067 1064 setMapInMaps(output->child,"download_link","asReference","true"); 1068 1065 setMapInMaps(output->child,"download_link","inRequest","true"); 1069 setMapInMaps(output->child,"wms_link","generated_file",targetPath); 1070 setMapInMaps(output->child,"wms_link","storage",targetPath); 1071 setMapInMaps(output->child,"wms_link","useMapserver","true"); 1072 setMapInMaps(output->child,"wms_link","msOgc","WMS"); 1073 setMapInMaps(output->child,"wms_link","requestedMimeType","image/png"); 1074 setMapInMaps(output->child,"wms_link","asReference","true"); 1075 if(getMaps(output->child,"wcs_link")!=NULL){ 1076 sprintf(serviceName,"wcs_link"); 1077 setMapInMaps(output->child,"wcs_link","msOgc","WCS"); 1078 }else{ 1079 sprintf(serviceName,"wfs_link"); 1080 setMapInMaps(output->child,"wfs_link","msOgc","WFS"); 1081 } 1082 setMapInMaps(output->child,serviceName,"storage",targetPath); 1083 setMapInMaps(output->child,serviceName,"generated_file",targetPath); 1084 setMapInMaps(output->child,serviceName,"useMapserver","true"); 1085 setMapInMaps(output->child,serviceName,"asReference","true"); 1066 if(getMaps(output->child,"wms_link")!=NULL){ 1067 setMapInMaps(output->child,"wms_link","generated_file",targetPath); 1068 setMapInMaps(output->child,"wms_link","storage",targetPath); 1069 setMapInMaps(output->child,"wms_link","useMapserver","true"); 1070 setMapInMaps(output->child,"wms_link","msOgc","WMS"); 1071 setMapInMaps(output->child,"wms_link","requestedMimeType","image/png"); 1072 setMapInMaps(output->child,"wms_link","asReference","true"); 1073 if(getMaps(output->child,"wcs_link")!=NULL){ 1074 sprintf(serviceName,"wcs_link"); 1075 setMapInMaps(output->child,"wcs_link","msOgc","WCS"); 1076 }else{ 1077 sprintf(serviceName,"wfs_link"); 1078 setMapInMaps(output->child,"wfs_link","msOgc","WFS"); 1079 } 1080 setMapInMaps(output->child,serviceName,"storage",targetPath); 1081 setMapInMaps(output->child,serviceName,"generated_file",targetPath); 1082 setMapInMaps(output->child,serviceName,"useMapserver","true"); 1083 setMapInMaps(output->child,serviceName,"asReference","true"); 1084 } 1085 freeMap(&tmp->content); 1086 free(tmp->content); 1087 tmp->content=NULL; 1086 1088 }else{ 1087 1089 map* hpcStdErr=getMapFromMaps(*main_conf,"henv","StdErr"); -
trunk/zoo-project/zoo-kernel/service_internal_ms.c
r921 r955 1528 1528 msFreeMap(myMap); 1529 1529 //msFree(myMap); 1530 msGDALCleanup();1530 //msGDALCleanup(); 1531 1531 } 1532 1532 -
trunk/zoo-project/zoo-kernel/sqlapi.c
r926 r955 31 31 #endif 32 32 33 #include <fcgi_stdio.h> 33 34 #include "sqlapi.h" 34 #include <fcgi_stdio.h>35 #include <stdlib.h>36 35 37 36 /** -
trunk/zoo-project/zoo-kernel/ulinet.c
r944 r955 269 269 */ 270 270 char* getProvenance(maps* conf,const char* url){ 271 int i=0; 271 272 map* sharedCache=getMapFromMaps(conf,"security","shared"); 272 273 char *res="OTHER"; … … 285 286 } 286 287 } 287 for(i nt i=0;i<2;i++){288 for(i=0;i<2;i++){ 288 289 sharedCache=getMapFromMaps(conf,"main",paths[i]); 289 290 if(sharedCache!=NULL){ -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r949 r955 69 69 #include "response_print.h" 70 70 #include "request_parser.h" 71 #include "sqlapi.h"72 71 #ifdef USE_JSON 73 72 #include "caching.h" 74 73 #endif 74 #include "sqlapi.h" 75 75 76 76 #ifdef META_DB … … 1872 1872 1873 1873 setMapInMaps(m,"lenv","executionType","xml"); 1874 if((strlen(cgiQueryString)>0 && cgiQueryString[0]=='/') ||strstr(cgiAccept,"json")!=NULL){1874 if((strlen(cgiQueryString)>0 && cgiQueryString[0]=='/') && strstr(cgiAccept,"json")!=NULL){ 1875 1875 // 1876 1876 // OGC API - Processing starts here
Note: See TracChangeset
for help on using the changeset viewer.