Changeset 539
- Timestamp:
- Nov 17, 2014, 3:35:53 PM (10 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/main.cfg
r465 r539 1 [mm] 2 biLayerAlias=Carte,Ortophoto,Ortophoto 2005,Parcels,Etat Major,Cassini,Elev 3 editingToolbar=select,add,edit 4 navName=Authenticate,Permalink,Twitter sharing,Facebook sharing,Scroll,Pan,Geolocate,Track my position,Zoom Box,Zoom To Max Extent,Identify,Identify Circle,Mesure Distance,Mesure Area,Print,Profile 5 scales=443744273,221872136,110936068,55468034,27734017,13867008,6933504,3466752,1733376,866688,433344,216672,108336,54168,27084,13542,6771,3385,1692 6 rasterToolbarAlias=Profile,Contour,Shaded Relief,Color Relief,Slope Map,Clip 7 supportedDbs=PostGIS,MySQL 8 mapcacheUrl=http://127.0.0.1/cache/ 9 biLayers=GEOGRAPHICALGRIDSYSTEMS.MAPS,ORTHOIMAGERY.ORTHOPHOTOS,ORTHOIMAGERY.ORTHOPHOTOS2000-2005,CADASTRALPARCELS.PARCELS,GEOGRAPHICALGRIDSYSTEMS.ETATMAJOR40,GEOGRAPHICALGRIDSYSTEMS.CASSINI,ELEVATION.SLOPES 10 bgLayers=google.maps.MapTypeId.TERRAIN,null,google.maps.MapTypeId.SATELLITE,google.maps.MapTypeId.HYBRID 11 bpDefault=g 12 bgName=Google 13 bbLayers=Road,Aerial,AerialWithLabels 14 navIcon=auth,permalink,tshare,fshare,scroll,pan,geoloc,track,zoom-in,zoomtomaxextent,info,infocircle,dist,area,print,terrain-profile 15 bbName=Bing 16 boLayerAlias=OpenStreetMap 17 bmLayerAlias=Streets,Satelite 18 toolbars=Vector 19 navId=authenticate,permalink,tshare,fshare,scroll,control,geolocate,track,zoomin,zoomtomaxextent,getFeature,getFeatureCircle,line,polygon,print,profile 20 navIdX=authenticate,permalink,tshare,fshare,zoomtomaxextent,print 21 navIdXX=scroll 22 navIdF=loadLoginForm,permalink,shareOnTwitter,shareOnFB,gotoMaxExtent,printIntoDocument 23 nvIID=getFeature,getFeatureCircle 24 osmApiUrl=http://open.mapquestapi.com/xapi/api/0.6/ 25 vectorToolbar=buffer,spatial-buffer,centroid,boundary,convexhull,simplify,spatial-query 26 bmLayers=Map,Aerial 27 boName=OSM 28 editingToolbarAlias=Select feature,Add feature,Edit feature 29 boLayers=OSM 30 address=http://127.0.0.1/mm 31 bmName=MapQuest 32 bpList=g,b,i 33 uomsName=Foot,Meter,Deegree 34 adminTheme=green 35 vectorToolbarAlias=Buffer,BufferMask,Centroid,Boundary,ConvexHull,Simplify,SpatialQuery 36 mapcacheCfg=/Users/djay/Sites/mapcache.xml 37 dateFormat=%A %d %B %Y 38 uomsId=english,metric,geographic 39 oldToolbars=Editing,Raster 40 rasterToolbar=profile,contour,shaded_relief,color_relief,slope_map,clip 41 bgLayerAlias=Physical,Streets,Satelite,Hybrid 42 bbLayerAlias=Streets,Satelite,Hybrid 43 sizeLimit=100M 44 biName=IGN 45 46 [headers] 47 X-Powered-By=ZOO-Project@MapMint 1 [main] 2 encoding = utf-8 3 version = 1.0.0 4 serverAddress = http://www.zoo-project.org/zoo/ 5 lang = fr-FR,en-CA,en-US 6 tmpPath=/tmp/ 7 tmpUrl = ../mpPathRelativeToServerAdress/ 8 dataPath = /tmp/ 9 cacheDir = /tmp/ 48 10 49 11 [identification] 50 keywords=WPS,GIS,buffer,MapMint,ZOO-Project 51 title=ZOO-Project WPS Production Server 52 abstract=Development version of ZooWPS. See http://www.zoo-project.org 53 accessConstraints =none54 fees=None 12 title = The Zoo WPS Development Server 13 abstract = Development version of ZooWPS. See http://www.zoo-project.org 14 fees = None 15 accessConstraints = none 16 keywords = WPS,GIS,buffer 55 17 56 18 [provider] 19 providerName=ZOO Project 20 providerSite=http://www.zoo-project.org 21 individualName=Gerald FENOY 57 22 positionName=Developer 58 providerName=GeoLabs SARL 23 role=Dev 24 addressDeliveryPoint=1280, avenue des Platanes 25 addressCity=Lattes 59 26 addressAdministrativeArea=False 60 address DeliveryPoint=1280, avenue des Platanes27 addressPostalCode=34970 61 28 addressCountry=fr 62 phoneVoice=+33 4 67 43 09 95 63 addressPostalCode=34970 64 role=Dev 65 providerSite=http://www.geolabs.fr 29 addressElectronicMailAddress=gerald@geolabs.fr 30 phoneVoice=False 66 31 phoneFacsimile=False 67 addressElectronicMailAddress=gerald@geolabs.fr68 addressCity=Lattes69 individualName=Gerald FENOY70 32 71 [main]72 encoding=utf-873 isTrial=true74 dataPath=/Users/djay/Sites/data75 tmpPath=/Users/djay/Sites/tmp76 supportedDbs=PostGIS,MySQL,WFS77 cacheDir=/Users/djay/Sites/cache78 rootUrl=/~djay/mm-np/public/79 publicationUrl=/~djay/pm-np/80 dblink=/Users/djay/Sites/mm.db81 mmPath=/Users/djay/Sites/mm-np/82 sessPath=/Users/djay/Sites/tmp83 version=1.0.084 dbuser=npdb85 dcount=386 dbuserName=np87 3D=false88 Rpy2=true89 applicationAddress=http://127.0.0.1/~djay/mm-np/90 mmAddress=/~djay/mm-np/91 publicationPath=/Users/djay/Sites/pm-np/92 msOgcVersion=1.0.093 serverAddress=http://127.0.0.1/np-bin/zoo_loader.cgi94 lang=fr-FR,en-US,ja-JP95 mapserverAddress=http://127.0.0.1/np-bin/mapserv.cgi96 tmpUrl=http://127.0.0.1/~djay/tmp/97 templatesPath=/Users/djay/Sites/mm-np/templates/98 templatesAddress=http://127.0.0.1/~djay/pm-np/tmpl/99 crs=IGNF:LAMB93100 jsCache=dev101 cssCache=prod102 cookiePrefix=MMID103 104 [npdb]105 host=127.0.0.1106 schema=velo107 user=postgres108 dbname=demogis109 port=5432110 111 [oo]112 external=true113 path=/Applications/LibreOffice.app/Contents/program/python114 ghostscript=/usr/local/bin/gs -
trunk/zoo-project/zoo-kernel/service_conf.l
r476 r539 41 41 42 42 attname [a-zA-Z0-9_\-]+ 43 attvalue1 [\^\*\+,;@a-zA-Z0-9 _\-::.:" "\"\'/\\\(\)\t\|\$\&>\[\]]+43 attvalue1 [\^\*\+,;@a-zA-Z0-9%_\-::.:" "\"\'/\\\(\)\t\|\$\&>\[\]]+ 44 44 45 45 attvalue \"[^"]*\"|\'[^']*\'\(\) -
trunk/zoo-project/zoo-kernel/service_conf.y
r505 r539 515 515 fflush(stderr); 516 516 #endif 517 if($1!=NULL ){517 if($1!=NULL && curr_key!=NULL){ 518 518 if(current_content==NULL){ 519 519 #ifdef DEBUG_SERVICE_CONF -
trunk/zoo-project/zoo-kernel/service_internal.c
r514 r539 1777 1777 xmlNewNsProp(nc,ns,BAD_CAST "processVersion",BAD_CAST tmp2->value); 1778 1778 1779 printDescription(nc,ns_ows,serv->name,serv->content); 1779 map* tmpI=getMapFromMaps(m,"lenv","oIdentifier"); 1780 printDescription(nc,ns_ows,tmpI->value,serv->content); 1780 1781 1781 1782 xmlAddChild(n,nc); … … 3361 3362 3362 3363 void parseIdentifier(maps* conf,char* conf_dir,char *identifier,char* buffer){ 3364 setMapInMaps(conf,"lenv","oIdentifier",identifier); 3365 char *lid=zStrdup(identifier); 3363 3366 char *saveptr1; 3364 char *tmps1=strtok_r( identifier,".",&saveptr1);3367 char *tmps1=strtok_r(lid,".",&saveptr1); 3365 3368 int level=0; 3366 3369 char key[25]; … … 3420 3423 sprintf(buffer,"%s.zcfg",tmp0); 3421 3424 free(tmp0); 3425 fprintf(stderr,"DEBUG %s\n",lid); 3426 free(lid); 3422 3427 } 3423 3428 … … 3451 3456 char size[1024]; 3452 3457 map* tmp=getMapFromMaps(outputs,parameterName,"value"); 3458 if(tmp==NULL){ 3459 setMapInMaps(outputs,parameterName,"value",""); 3460 tmp=getMapFromMaps(outputs,parameterName,"value"); 3461 } 3453 3462 free(tmp->value); 3454 3463 tmp->value=(char*) malloc((numberOfBytes+1)*sizeof(char)); -
trunk/zoo-project/zoo-kernel/service_internal_java.c
r527 r539 51 51 sprintf(classpath,"%s/%s/",ntmp,tmp->value); 52 52 } 53 sprintf(oclasspath,"-Djava.class.path=%s",classpath);54 53 }else{ 55 54 if(cclasspath!=NULL){ … … 67 66 sprintf(classpath,"%s/",ntmp); 68 67 } 69 sprintf(oclasspath,"-Djava.class.path=%s",classpath);70 68 71 69 } … … 77 75 #endif 78 76 77 int nb=1; 78 int nbc0=0; 79 maps* javaXXMap=getMaps(main_conf,"javaxx"); 80 if(javaXXMap!=NULL){ 81 nbc0+=count(javaXXMap->content); 82 } 83 int nbc1=0; 84 maps* javaXMap=getMaps(main_conf,"javax"); 85 if(javaXMap!=NULL){ 86 nbc1+=count(javaXMap->content); 87 } 79 88 #ifdef WIN32 80 JavaVMOption options[2]; 81 #else 82 JavaVMOption options[1]; 89 nb=2+nbc0+nbc1; 90 JavaVMOption options[nb]; 91 #else 92 JavaVMOption options[nb+nbc0+nbc1]; 83 93 #endif 84 94 JavaVMInitArgs vm_args; … … 95 105 jclass cls_gr; 96 106 #endif 97 int i; 98 107 int i,start; 108 map *cursorxx=NULL; 109 if(javaXXMap!=NULL) 110 cursorxx=javaXXMap->content; 111 map *cursorx=NULL; 112 if(javaXMap!=NULL) 113 cursorx=javaXMap->content; 99 114 options[0].optionString = oclasspath; 100 115 #ifdef WIN32 116 start=2; 101 117 options[1].optionString = "-Xmx512m"; 102 /*options[2].optionString = "-Xms128m"; 103 options[3].optionString = "-XX:MaxPermSize=256m"; 104 options[4].optionString = "-XX:MaxHeapFreeRatio=70";*/ 105 #endif 118 #else 119 start=1; 120 #endif 121 for(i=0;i<nbc0;i++){ 122 char *tmp=parseJVMXXOption(cursorxx); 123 options[start+i].optionString = tmp; 124 free(tmp); 125 cursorxx=cursorxx->next; 126 } 127 for(;i<nbc1+nbc0;i++){ 128 char *tmp=parseJVMXOption(cursorx); 129 options[start+i].optionString = tmp; 130 free(tmp); 131 cursorx=cursorx->next; 132 } 106 133 107 134 JNI_GetDefaultJavaVMInitArgs(&vm_args); 108 135 vm_args.version = JNI_VERSION_1_6; 109 136 vm_args.options = options; 110 #ifdef WIN32 111 vm_args.nOptions = 2; 112 #else 113 vm_args.nOptions = 1; 114 #endif 137 vm_args.nOptions = start+nbc0+nbc1; 115 138 vm_args.ignoreUnrecognized = JNI_TRUE; 116 139 … … 264 287 } 265 288 289 char *parseJVMXXOption(map* m){ 290 char *res=(char*)malloc((strlen(m->name)+strlen(m->value)+5)*sizeof(char)); 291 if(strncasecmp(m->value,"minus",5)==0) 292 sprintf(res,"-XX:-%s",m->name); 293 else if(strncasecmp(m->value,"plus",5)==0) 294 sprintf(res,"-XX:+%s",m->name); 295 else 296 sprintf(res,"-XX:%s=%s",m->name,m->value); 297 return res; 298 } 299 300 char *parseJVMXOption(map* m){ 301 char *res=(char*)malloc((strlen(m->name)+strlen(m->value)+5)*sizeof(char)); 302 sprintf(res,"-X%s:%s",m->name,m->value); 303 return res; 304 } 305 266 306 jobject HashMap_FromMaps(JNIEnv *env,maps* t,jclass scHashMapClass,jclass scHashMap_class,jmethodID scHashMap_constructor){ 267 307 jobject scObject,scObject1; -
trunk/zoo-project/zoo-kernel/service_internal_java.h
r388 r539 41 41 void displayStack(JNIEnv*,maps*); 42 42 43 char *parseJVMXXOption(map*); 44 45 char *parseJVMXOption(map*); 46 43 47 int zoo_java_support(maps**,map*,service*,maps**,maps**); 44 48 -
trunk/zoo-project/zoo-kernel/service_internal_python.c
r508 r539 212 212 else{ 213 213 pName = PyString_FromString(tmp->value); 214 fprintf(stderr,"%s %d",tmp->value,__LINE__);215 214 } 216 215 } -
trunk/zoo-project/zoo-kernel/ulinet.c
r534 r539 299 299 char *tmp; 300 300 curl_easy_getinfo(hInternet->ihandle[i].handle,CURLINFO_CONTENT_TYPE,&tmp); 301 hInternet->ihandle[i].mimeType=strdup(tmp); 301 if(tmp!=NULL) 302 hInternet->ihandle[i].mimeType=strdup(tmp); 302 303 curl_multi_remove_handle(hInternet->handle, hInternet->ihandle[i].handle); 303 304 curl_easy_cleanup(hInternet->ihandle[i].handle); -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r527 r539 256 256 fprintf(stderr,"#################\n%s\n#################\n",tmps1); 257 257 #endif 258 t=readServiceFile(m,tmps1,&s1,dp->d_name); 259 258 char *tmpsn=zStrdup(dp->d_name); 259 tmpsn[strlen(tmpsn)-5]=0; 260 t=readServiceFile(m,tmps1,&s1,tmpsn); 261 free(tmpsn); 260 262 if(t<0){ 261 263 map* tmp00=getMapFromMaps(m,"lenv","message"); … … 994 996 if(tmpMap!=NULL) 995 997 addToMap(request_inputs,"metapath",tmpMap->value); 998 map* tmpMapI=getMapFromMaps(m,"lenv","Identifier"); 996 999 997 1000 s1=(service*)malloc(SERVICE_SIZE); 998 t=readServiceFile(m,buff1,&s1, corig);1001 t=readServiceFile(m,buff1,&s1,tmpMapI->value); 999 1002 if(t<0){ 1000 1003 map* tmp00=getMapFromMaps(m,"lenv","message"); … … 1165 1168 addToMap(request_inputs,"metapath",tmpMap->value); 1166 1169 free(identifier); 1167 }else 1170 }else{ 1168 1171 setMapInMaps(m,"lenv","Identifier",r_inputs->value); 1172 setMapInMaps(m,"lenv","oIdentifier",r_inputs->value); 1173 } 1174 1175 r_inputs=getMapFromMaps(m,"lenv","Identifier"); 1169 1176 int saved_stdout = dup(fileno(stdout)); 1170 1177 dup2(fileno(stderr),fileno(stdout));
Note: See TracChangeset
for help on using the changeset viewer.