- Timestamp:
- May 3, 2017, 12:53:06 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/service_internal_ms.c
r781 r822 131 131 */ 132 132 void setReferenceUrl(maps* m,maps* tmpI){ 133 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 134 fflush(stderr); 135 dumpMaps(tmpI); 136 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 137 fflush(stderr); 133 138 outputMapfile(m,tmpI); 139 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 140 fflush(stderr); 141 dumpMaps(tmpI); 142 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 143 fflush(stderr); 134 144 map *msUrl=getMapFromMaps(m,"main","mapserverAddress"); 135 145 if(msUrl==NULL){ … … 150 160 {"WMS","1.3.0","GetMap","layers=%s","wms_extent"}, 151 161 {"WFS","1.1.0","GetFeature","typename=%s","wcs_extent"}, 152 {"WCS","1.1.0","GetCoverage","coverage=%s","wcs_extent"} 162 //{"WCS","1.1.0","GetCoverage","coverage=%s","wcs_extent"} 163 {"WCS","2.0.0","GetCoverage","coverageid=%s","wcs_extent"} 153 164 }; 154 165 int proto=0; … … 988 999 */ 989 1000 void outputMapfile(maps* conf,maps* outputs){ 990 1001 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1002 fflush(stderr); 1003 dumpMaps(outputs); 1004 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1005 fflush(stderr); 991 1006 /** 992 1007 * First store the value on disk … … 998 1013 ext="json"; 999 1014 1015 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1016 fflush(stderr); 1000 1017 map* tmpMap=getMapFromMaps(conf,"main","dataPath"); 1001 1018 map* sidMap=getMapFromMaps(conf,"lenv","usid"); … … 1009 1026 map* sizeMap=getMap(outputs->content,"size"); 1010 1027 map* vData=getMap(outputs->content,"value"); 1028 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1029 fflush(stderr); 1011 1030 if(sizeMap!=NULL){ 1012 1031 zWrite(f,vData->value,atoi(sizeMap->value)*sizeof(char)); … … 1015 1034 zWrite(f,vData->value,(strlen(vData->value)+1)*sizeof(char)); 1016 1035 } 1036 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1037 fflush(stderr); 1017 1038 close(f); 1039 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1040 fflush(stderr); 1018 1041 addToMap(outputs->content,"storage",pszDataSource); 1019 1042 free(pszDataSource); 1043 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1044 fflush(stderr); 1020 1045 1021 1046 /* … … 1024 1049 mapObj *myMap=msNewMapObj(); 1025 1050 free(myMap->name); 1051 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1052 fflush(stderr); 1026 1053 myMap->name=zStrdup("ZOO-Project_WXS_Server"); 1054 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1055 fflush(stderr); 1027 1056 msMapSetSize(myMap,2048,2048); 1057 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1058 fflush(stderr); 1028 1059 msMapSetExtent(myMap,-1,-1,1,1); 1060 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1061 fflush(stderr); 1029 1062 1030 1063 /* … … 1035 1068 tmp1=getMapFromMaps(conf,"main","tmpUrl"); 1036 1069 myMap->web.imageurl=zStrdup(tmp1->value); 1070 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1071 fflush(stderr); 1037 1072 1038 1073 /* … … 1045 1080 msAppendOutputFormat(myMap,msCloneOutputFormat(o1)); 1046 1081 msFreeOutputFormat(o1); 1082 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1083 fflush(stderr); 1047 1084 1048 1085 #ifdef USE_KML 1049 1086 outputFormatObj *o2=msCreateDefaultOutputFormat(NULL,"KML","kml"); 1050 o2->inmapfile=MS_TRUE; 1051 msAppendOutputFormat(myMap,msCloneOutputFormat(o2)); 1052 msFreeOutputFormat(o2); 1053 #endif 1087 if(!o2){ 1088 perror("Unable to initialize KML driver"); 1089 fprintf(stderr,"Unable to initialize KML driver !\n"); 1090 }else{ 1091 o2->inmapfile=MS_TRUE; 1092 msAppendOutputFormat(myMap,msCloneOutputFormat(o2)); 1093 msFreeOutputFormat(o2); 1094 } 1095 #endif 1096 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1097 fflush(stderr); 1054 1098 1055 1099 outputFormatObj *o3=msCreateDefaultOutputFormat(NULL,"GDAL/GTiff","tiff"); … … 1062 1106 msFreeOutputFormat(o3); 1063 1107 } 1108 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1109 fflush(stderr); 1064 1110 1065 1111 outputFormatObj *o4=msCreateDefaultOutputFormat(NULL,"GDAL/AAIGRID","grd"); … … 1072 1118 msFreeOutputFormat(o4); 1073 1119 } 1120 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1121 fflush(stderr); 1074 1122 1075 1123 #ifdef USE_CAIRO … … 1085 1133 } 1086 1134 #endif 1135 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1136 fflush(stderr); 1087 1137 1088 1138 /* … … 1091 1141 msLoadProjectionStringEPSG(&myMap->projection,"EPSG:4326"); 1092 1142 myMap->transparent=1; 1143 fprintf(stderr,"%s %D \n",__FILE__,__LINE__); 1144 fflush(stderr); 1093 1145 1094 1146 /**
Note: See TracChangeset
for help on using the changeset viewer.