Ignore:
Timestamp:
Nov 17, 2014, 5:05:50 PM (10 years ago)
Author:
djay
Message:

Add AnyValue? node only when input is not a boolean.

File:
1 edited

Legend:

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

    r540 r542  
    16361636       getMap(_tmp->content,"rangeClosure")==NULL ){
    16371637      tmp1=getMap(_tmp->content,"dataType");
    1638       if(tmp1!=NULL)
    1639         if(strcasecmp(tmp1->value,"boolean")==0){
    1640           nc6 = xmlNewNode(ns_ows, BAD_CAST "AllowedValues");
    1641           nc7 = xmlNewNode(ns_ows, BAD_CAST "Value");
    1642           xmlAddChild(nc7,xmlNewText(BAD_CAST "true"));
    1643           xmlAddChild(nc6,nc7);
    1644           nc7 = xmlNewNode(ns_ows, BAD_CAST "Value");
    1645           xmlAddChild(nc7,xmlNewText(BAD_CAST "false"));
    1646           xmlAddChild(nc6,nc7);
    1647           xmlAddChild(nc3,nc6);
    1648         }
    1649       xmlAddChild(nc3,xmlNewNode(ns_ows, BAD_CAST "AnyValue"));
     1638      if(tmp1!=NULL && strcasecmp(tmp1->value,"boolean")==0){
     1639        nc6 = xmlNewNode(ns_ows, BAD_CAST "AllowedValues");
     1640        nc7 = xmlNewNode(ns_ows, BAD_CAST "Value");
     1641        xmlAddChild(nc7,xmlNewText(BAD_CAST "true"));
     1642        xmlAddChild(nc6,nc7);
     1643        nc7 = xmlNewNode(ns_ows, BAD_CAST "Value");
     1644        xmlAddChild(nc7,xmlNewText(BAD_CAST "false"));
     1645        xmlAddChild(nc6,nc7);
     1646        xmlAddChild(nc3,nc6);
     1647      }
     1648      else
     1649        xmlAddChild(nc3,xmlNewNode(ns_ows, BAD_CAST "AnyValue"));
    16501650    }
    16511651   
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