Changeset 917 for trunk/zoo-project/zoo-services/ogr/ogr2ogr
- Timestamp:
- May 7, 2019, 2:17:08 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:mergeinfo
set to
False
/branches/prototype-v0 merged eligible
-
Property
svn:mergeinfo
set to
False
-
trunk/zoo-project/zoo-services/ogr/ogr2ogr/service.c
r790 r917 96 96 #endif 97 97 { 98 char *pszDialect = NULL; 98 99 const char *pszFormat = "ESRI Shapefile"; 99 100 const char *pszDataSource = NULL; … … 155 156 sprintf(serverAddress,"%s",tmpMap->value); 156 157 } 157 158 158 159 tmpMap=NULL; 159 160 char tmpurl[1024]; … … 223 224 if(tmpMap!=NULL && strncasecmp(tmpMap->value,"NULL",4)!=0){ 224 225 pszSQLStatement = tmpMap->value; 226 } 227 228 tmpMap=getMapFromMaps(inputs,"dialect","value"); 229 if(tmpMap!=NULL){ 230 pszDialect=strdup(tmpMap->value); 225 231 } 226 232 … … 360 366 dfMaxSegmentLength = atof(tmpMap->value); 361 367 } 362 363 /*tmpMap=NULL; 364 tmpMap=getMapFromMaps(inputs,"segmentize","value"); 365 if(tmpMap!=NULL){ 366 dfMaxSegmentLength = atof(tmpMap->value); 367 }*/ 368 368 369 369 tmpMap=NULL; 370 370 tmpMap=getMapFromMaps(inputs,"InputDSN","value"); … … 825 825 826 826 poResultSet = poDS->ExecuteSQL( pszSQLStatement, poSpatialFilter, 827 NULL);827 pszDialect ); 828 828 829 829 if( poResultSet != NULL ) … … 841 841 } 842 842 poDS->ReleaseResultSet( poResultSet ); 843 } 844 } 843 }else{ 844 setMapInMaps(conf,"lenv","message","There was an error when running yoru SQL query."); 845 if(pszDialect!=NULL) 846 free(pszDialect); 847 return SERVICE_FAILED; 848 } 849 } 850 if(pszDialect!=NULL) 851 free(pszDialect); 845 852 846 853 /* -------------------------------------------------------------------- */ … … 901 908 902 909 #ifdef ZOO_SERVICE 903 outputs->content=createMap("value",(char*)pszwebDestData); 910 setMapInMaps(outputs,"OutputedDataSourceName","value",(char*)pszwebDestData); 911 //outputs->content=createMap("value",(char*)pszwebDestData); 904 912 #endif 905 913 … … 930 938 fprintf(stderr,"%s %d\n",__FILE__,__LINE__); 931 939 932 OGRCleanupAll();940 //OGRCleanupAll(); 933 941 fprintf(stderr,"%s %d\n",__FILE__,__LINE__); 934 942 … … 939 947 940 948 #ifdef ZOO_SERVICE 949 //sleep(10); 941 950 return SERVICE_SUCCEEDED; 942 951 #else
Note: See TracChangeset
for help on using the changeset viewer.