Ignore:
Timestamp:
Feb 3, 2015, 12:59:21 PM (9 years ago)
Author:
djay
Message:

Add otb2zcfg and OTB applications support without observer by now. Fix issue with maxOccurs and multiple downloaded value for the same input.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/zoo_service_loader.c

    r541 r550  
    2323 */
    2424
    25 #define length(x) (sizeof(x) / sizeof(x[0]))
     25
    2626
    2727extern "C" int yylex ();
    2828extern "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
    2935
    3036#include "cgic.h"
     
    177183          && atoi (testMap->value) > 1)
    178184        {
    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))
    180188            {
    181189              char emsg[1024];
    182190              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."),
    185192                       mi->name, atoi (testMap->value));
    186193              errorException (m, emsg, "InternalError", NULL);
     
    609616    }
    610617  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
    611630#ifdef USE_PYTHON
    612631  if (strncasecmp (r_inputs->value, "PYTHON", 6) == 0)
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png