Ignore:
Timestamp:
Dec 10, 2010, 11:26:13 AM (14 years ago)
Author:
nmarco
Message:

I Correct the path to the output data: now refers to the url path (tmpUrl) of the web service, instead to the server path (tmpPath)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-services/ogr/ogr2ogr/service.c

    r40 r49  
    7979    const char  *pszDataSource = NULL;
    8080    const char  *pszDestDataSource = NULL;
     81    const char  *pszwebDestData = NULL;
    8182    char        **papszLayers = NULL;
    8283    char        **papszDSCO = NULL, **papszLCO = NULL;
     
    123124    if(tmpMap!=NULL){
    124125      sprintf(tempPath,"%s",tmpMap->value);
     126    }
     127   
     128    tmpMap=NULL;
     129    char serverAddress[1024];
     130    tmpMap=getMapFromMaps(conf,"main","serverAddress");
     131    if(tmpMap!=NULL){
     132      sprintf(serverAddress,"%s",tmpMap->value);
     133    }
     134   
     135    tmpMap=NULL;
     136    char tmpurl[1024];
     137    tmpMap=getMapFromMaps(conf,"main","tmpurl");
     138    if(tmpMap!=NULL){
     139      sprintf(tmpurl,"%s",tmpMap->value);
    125140    }
    126141
     
    341356      pszDestDataSource=(char*)malloc(sizeof(char)*(strlen(tempPath)+strlen(tmpMap->value)+4));
    342357      sprintf((char*)pszDestDataSource,"%s/%s",tempPath,tmpMap->value/*,ext*/);
     358      pszwebDestData=(char*)malloc(sizeof(char)*(strlen(serverAddress)+strlen(tmpurl)+strlen(tmpMap->value)+4));
     359      sprintf((char*)pszwebDestData,"%s%s/%s",serverAddress,tmpurl,tmpMap->value/*,ext*/);
    343360    }
    344361
     
    811828        outputs=(maps*)malloc(sizeof(maps*));
    812829    outputs->name="GeneratedFile";
    813     outputs->content=createMap("value",(char*)pszDestDataSource);
     830    outputs->content=createMap("value",(char*)pszwebDestData);
    814831    addMapToMap(&outputs->content,createMap("dataType","string"));
    815832    outputs->next=NULL;
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