Changeset 49 for trunk/zoo-services/ogr/ogr2ogr
- Timestamp:
- Dec 10, 2010, 11:26:13 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-services/ogr/ogr2ogr/service.c
r40 r49 79 79 const char *pszDataSource = NULL; 80 80 const char *pszDestDataSource = NULL; 81 const char *pszwebDestData = NULL; 81 82 char **papszLayers = NULL; 82 83 char **papszDSCO = NULL, **papszLCO = NULL; … … 123 124 if(tmpMap!=NULL){ 124 125 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); 125 140 } 126 141 … … 341 356 pszDestDataSource=(char*)malloc(sizeof(char)*(strlen(tempPath)+strlen(tmpMap->value)+4)); 342 357 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*/); 343 360 } 344 361 … … 811 828 outputs=(maps*)malloc(sizeof(maps*)); 812 829 outputs->name="GeneratedFile"; 813 outputs->content=createMap("value",(char*)psz DestDataSource);830 outputs->content=createMap("value",(char*)pszwebDestData); 814 831 addMapToMap(&outputs->content,createMap("dataType","string")); 815 832 outputs->next=NULL;
Note: See TracChangeset
for help on using the changeset viewer.