Changeset 984 for trunk/zoo-project
- Timestamp:
- Mar 3, 2021, 3:41:55 PM (4 years ago)
- Location:
- trunk/zoo-project
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/HISTORY.txt
r982 r984 1 1 Version 1.8.1 2 * Make all demos running within docker 2 3 * Deploy demo HTML UI from github from the Dockerfile 3 4 * Add demo ZOO-Services build in the Dockerfile -
trunk/zoo-project/zoo-kernel/configure.ac
r982 r984 415 415 CPPFLAGS_SAVE="$CPPFLAGS" 416 416 CPPFLAGS="$PROJ_CPPFLAGS" 417 AC_CHECK_HEADERS([proj_api.h],418 [], [AC_MSG_ERROR([could not find headers include related to PROJ4])])419 417 420 418 AC_SUBST([PROJ_CPPFLAGS]) … … 607 605 echo $PYTHONCONFIG 608 606 # Extract the linker and include flags 609 PYTHON_LDFLAGS=`$PYTHONCONFIG --ldflags` 607 #PYTHON_LDFLAGS=`$PYTHONCONFIG --ldflags` 608 PYTHON_LDFLAGS=$($PYTHONCONFIG --ldflags | sed "s:python${PYTHON_VERS}/config-${PYTHON_VERS}-::g") 610 609 PYTHON_CPPFLAGS=`$PYTHONCONFIG --includes` 611 610 … … 618 617 # Ensure we can link against libphp 619 618 LIBS_SAVE="$LIBS" 620 LIBS="$PYTHON_LDFLAGS" 621 PY_LIB=`$PYTHONCONFIG --libs | sed \ 622 -e 's/.*\(python[[0-9]]\.[[0-9]]\).*/\1/'` 623 AC_CHECK_LIB([$PY_LIB], [PyObject_CallObject], [], [AC_MSG_ERROR([could not find libpython])], []) 619 #LIBS="$PYTHON_LDFLAGS" 620 #PY_LIB=`$PYTHONCONFIG --libs | sed \ 621 # -e 's/.*\(python[[0-9]]\.[[0-9]]\).*/\1/'` 622 #AC_CHECK_LIB([$PY_LIB], [PyObject_CallObject], [], [AC_MSG_ERROR([could not find libpython])], []) 623 LIBS="m $PYTHON_LDFLAGS -lpython${PYTHON_VERS}" 624 PYTHON_LDFLAGS="-l$LIBS" 625 LDFLAGS=$PYTHON_LDFLAGS 626 AC_CHECK_LIB([], [PyObject_CallObject], [], [AC_MSG_ERROR([could not find libpython])], []) 624 627 LIBS="$LIBS_SAVE" 625 628 fi -
trunk/zoo-project/zoo-kernel/main_conf_read.y
r961 r984 154 154 my_maps=my_map; 155 155 my_maps->name=NULL; 156 my_maps->content=NULL; 157 my_maps->child=NULL; 158 my_maps->next=NULL; 156 159 current_maps=my_maps; 157 160 -
trunk/zoo-project/zoo-kernel/service.c
r967 r984 838 838 else 839 839 pmsCursor->next->child=NULL; 840 return; 840 841 } 841 842 else{ -
trunk/zoo-project/zoo-kernel/service_internal_ms.c
r955 r984 1272 1272 m->numlayers++; 1273 1273 GDALClose( hDataset ); 1274 #ifndef RELY_ON_DB 1274 1275 GDALDestroyDriverManager(); 1276 #endif 1275 1277 CPLCleanupTLS(); 1276 1278 storeMd5(pszFilename); -
trunk/zoo-project/zoo-kernel/service_internal_otb.c
r962 r984 211 211 }else{ 212 212 if(type == ParameterType_OutputVectorData){ 213 c har* ext="json";213 const char* ext="json"; 214 214 if(tmpVal!=NULL){ 215 215 if(strncasecmp(tmpVal->value,"text/xml",8)==0) … … 232 232 else 233 233 if(type == ParameterType_OutputFilename){ 234 c har* ext="txt";234 const char* ext="txt"; 235 235 if(tmpVal!=NULL){ 236 236 if(strncasecmp(tmpVal->value,"text/xml",8)==0) … … 308 308 char tmp[1024]; 309 309 map* tmpVal=getMapFromMaps(inputs,paramKey.c_str(),"mimeType"); 310 c har* ext="json";310 const char* ext="json"; 311 311 if(tmpVal!=NULL){ 312 312 if(strncasecmp(tmpVal->value,"application/zip",14)==0){ … … 362 362 else 363 363 if(type == ParameterType_InputImage 364 || type == ParameterType_ ComplexInputImage || type == ParameterType_InputVectorData364 || type == ParameterType_InputVectorData 365 365 || type == ParameterType_InputFilename){ 366 366 m_Application->SetParameterString(paramKey, test->value); … … 403 403 long count; 404 404 405 c har *exts[4];405 const char *exts[4]; 406 406 exts[0]=".shp"; 407 407 exts[1]=".shx"; -
trunk/zoo-project/zoo-kernel/service_internal_otb.h
r640 r984 36 36 #include "service_internal.h" 37 37 #include "service.h" 38 #include "cgic.h"39 38 #ifdef WIN32 40 39 #include <windows.h> 41 40 #include <direct.h> 42 41 #endif 43 #include <vector>44 #include <string>45 42 46 43 /** -
trunk/zoo-project/zoo-kernel/ulinet.h
r945 r984 34 34 #include "jsapi.h" 35 35 #endif 36 #include "fcgi_stdio.h"37 36 #include <stdlib.h> 38 37 #include <fcntl.h> -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r982 r984 1886 1886 FILE *f0, *f1; 1887 1887 HINTERNET hInternet; 1888 service *s1 ;1888 service *s1=NULL; 1889 1889 maps *request_output_real_format = NULL; 1890 1890 maps *request_input_real_format = NULL; … … 2552 2552 printf("\n"); 2553 2553 fflush(stdout); 2554 json_object_put(res); 2554 2555 } 2555 2556 //return 1; … … 3453 3454 #else 3454 3455 recordResponse(m,fbkp1); 3456 #ifdef USE_CALLBACK 3455 3457 if (eres == SERVICE_SUCCEEDED) 3456 #ifdef USE_CALLBACK3457 3458 invokeCallback(m,NULL,request_output_real_format,6,0); 3458 3459 #endif … … 3493 3494 #endif 3494 3495 } 3495 3496 freeService (&s1); 3497 free (s1); 3496 3497 if(s1!=NULL){ 3498 freeService (&s1); 3499 free (s1); 3500 } 3498 3501 freeMaps (&m); 3499 3502 free (m); -
trunk/zoo-project/zoo-services/ogr/base-vect-ops/service.c
r917 r984 38 38 #include "service_internal.h" 39 39 40 extern "C" {41 40 #include <libxml/tree.h> 42 41 #include <libxml/parser.h> … … 44 43 #include <libxml/xpathInternals.h> 45 44 46 /*#include <openssl/sha.h> 47 #include <openssl/hmac.h> 48 #include <openssl/evp.h> 49 #include <openssl/bio.h> 50 #include <openssl/buffer.h> 51 */ 45 extern "C" { 52 46 53 47 void printExceptionReportResponse(maps*,map*); -
trunk/zoo-project/zoo-services/utils/open-api/templates/index.html
r967 r984 18 18 #import json 19 19 #if "cache_file" in $inputs["tmpl"] 20 #set values=json.load(open($inputs["tmpl"]["cache_file"] ))20 #set values=json.load(open($inputs["tmpl"]["cache_file"], encoding='utf-8')) 21 21 #else 22 #set values= $inputs["tmpl"]["value"]22 #set values=json.loads($inputs["tmpl"]["value"]) 23 23 #end if 24 24 #except Exception as e 25 25 $e 26 #set values={} 26 27 #end try 27 28 <html lang="en"> … … 202 203 #end if 203 204 #end if 204 #if $obj["maxOccurs"] >1205 #if $obj["maxOccurs"]=="unbounded" or $obj["maxOccurs"]>1 205 206 <div class="btn-group" role="group" aria-label="Basic example"> 206 207 <button type="button" class="btn btn-secondary" onclick="addElementToList(\$(this));">Add</button> … … 525 526 <hr> 526 527 <address>$openapi["openapi"]["rootUrl"]$(currentUrl).html</address> 527 <!-- hhmts start -->Last modified: Wed Dec 16 16:06:56 CET 2020<!-- hhmts end -->528 <!-- hhmts start -->Last modified: Mon Mar 1 17:01:50 CET 2021 <!-- hhmts end --> 528 529 </main> 529 530 #if $currentKey=="root"
Note: See TracChangeset
for help on using the changeset viewer.