Changeset 550 for trunk/zoo-project/zoo-kernel/zoo_service_loader.c
- Timestamp:
- Feb 3, 2015, 12:59:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r541 r550 23 23 */ 24 24 25 #define length(x) (sizeof(x) / sizeof(x[0])) 25 26 26 27 27 extern "C" int yylex (); 28 28 extern "C" int crlex (); 29 30 #ifdef USE_OTB 31 #include "service_internal_otb.h" 32 #else 33 #define length(x) (sizeof(x) / sizeof(x[0])) 34 #endif 29 35 30 36 #include "cgic.h" … … 177 183 && atoi (testMap->value) > 1) 178 184 { 179 if (addMapsArrayToMaps (&mo, mi, tmap->name) < 0) 185 addMapsArrayToMaps (&mo, mi, tmap->name); 186 map* nb=getMapFromMaps(mo,mi->name,"length"); 187 if (nb!=NULL && atoi(nb->value)>atoi(testMap->value)) 180 188 { 181 189 char emsg[1024]; 182 190 sprintf (emsg, 183 _ 184 ("You set maximum occurences for <%s> as %i but you tried to use it more than the limit you set. Please correct your ZCFG file or your request."), 191 _("You set maximum occurences for <%s> as %i but you tried to use it more than the limit you set. Please correct your ZCFG file or your request."), 185 192 mi->name, atoi (testMap->value)); 186 193 errorException (m, emsg, "InternalError", NULL); … … 609 616 } 610 617 else 618 619 #ifdef USE_OTB 620 if (strncasecmp (r_inputs->value, "OTB", 6) == 0) 621 { 622 *eres = 623 zoo_otb_support (&m, request_inputs, s1, 624 &request_input_real_format, 625 &request_output_real_format); 626 } 627 else 628 #endif 629 611 630 #ifdef USE_PYTHON 612 631 if (strncasecmp (r_inputs->value, "PYTHON", 6) == 0)
Note: See TracChangeset
for help on using the changeset viewer.