Changes between Version 57 and Version 58 of ZooWorkshop/FOSS4GJapan/CreatingOGRBasedWebServices


Ignore:
Timestamp:
Oct 16, 2010, 3:38:09 PM (14 years ago)
Author:
djay
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ZooWorkshop/FOSS4GJapan/CreatingOGRBasedWebServices

    v57 v58  
    844844  OGRGeometryH geometry,res;
    845845  map* tmp1=getMapFromMaps(inputs,"InputPolygon","value");
    846   if(tmp==NULL)
     846  if(tmp==NULL){
     847    setMapInMaps(conf,"lenv","message","Unable to fetch InputPolygon value.");
    847848    return SERVICE_FAILED;
     849  }
    848850  map* tmp1=getMapFromMaps(inputs,"InputPolygon","mimeType");
    849851  if(strncmp(tmp->value,"application/json",16)==0)
     
    858860  tmp1=getMapFromMaps(outputs,"Result","mimeType");
    859861  if(strncmp(tmp1->value,"application/json",16)==0){
    860     addToMap(outputs->content,"value",OGR_G_ExportToJson(res));
    861     addToMap(outputs->content,"mimeType","text/plain");
     862    char *tmp=OGR_G_ExportToJson(res);
     863    setMapInMaps(outputs,"Result","value",tmp);
     864    setMapInMaps(outputs,"Result","mimeType","text/plain");
     865    free(tmp);   
    862866  }
    863867  else{
    864     addToMap(outputs->content,"value",OGR_G_ExportToGML(res));
     868    char *tmp=OGR_G_ExportToGML(res);
     869    setMapInMaps(outputs,"Result","value",tmp);
     870    free(tmp);   
    865871  }
    866872  outputs->next=NULL;

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