Changeset 52


Ignore:
Timestamp:
Dec 16, 2010, 2:37:45 PM (14 years ago)
Author:
nmarco
Message:

corrected the extension of the output files (before it was always .js both if the output request was json or gml)

File:
1 edited

Legend:

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

    r43 r52  
    14931493    if(toto!=NULL && strcasecmp(toto->value,"true")==0){
    14941494      toto=getMap(request_outputs->content,"extension");
     1495      /* put gml extension if the extension is defined as .js and the result will be a gml file */
     1496      map* mtype=getMap(request_outputs->content,"mimeType");
     1497      if (strcasecmp(toto->value,"js")==0 && strcasecmp(mtype->value,"text/xml")==0) {
     1498        toto->value="gml";
     1499      }
    14951500      map *tmp1=getMapFromMaps(m,"main","tmpPath");
    14961501      char *file_name=(char*)malloc((strlen(tmp1->value)+strlen(s->name)+strlen(toto->value)+13)*sizeof(char));
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