Changeset 862 for branches/prototype-v0/zoo-project/zoo-services/ogr
- Timestamp:
- Feb 1, 2018, 11:27:28 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-services/ogr/ogr2ogr/service.c
r790 r862 96 96 #endif 97 97 { 98 const 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 … … 367 373 }*/ 368 374 375 369 376 tmpMap=NULL; 370 377 tmpMap=getMapFromMaps(inputs,"InputDSN","value"); … … 825 832 826 833 poResultSet = poDS->ExecuteSQL( pszSQLStatement, poSpatialFilter, 827 NULL);834 pszDialect ); 828 835 829 836 if( poResultSet != NULL ) … … 841 848 } 842 849 poDS->ReleaseResultSet( poResultSet ); 843 } 844 } 850 }else{ 851 setMapInMaps(conf,"lenv","message","There was an error when running yoru SQL query."); 852 if(pszDialect!=NULL) 853 free(pszDialect); 854 return SERVICE_FAILED; 855 } 856 } 857 if(pszDialect!=NULL) 858 free(pszDialect); 845 859 846 860 /* -------------------------------------------------------------------- */ … … 901 915 902 916 #ifdef ZOO_SERVICE 903 outputs->content=createMap("value",(char*)pszwebDestData); 917 setMapInMaps(outputs,"OutputedDataSourceName","value",(char*)pszwebDestData); 918 //outputs->content=createMap("value",(char*)pszwebDestData); 904 919 #endif 905 920 … … 930 945 fprintf(stderr,"%s %d\n",__FILE__,__LINE__); 931 946 932 OGRCleanupAll();947 //OGRCleanupAll(); 933 948 fprintf(stderr,"%s %d\n",__FILE__,__LINE__); 934 949 … … 939 954 940 955 #ifdef ZOO_SERVICE 956 //sleep(10); 941 957 return SERVICE_SUCCEEDED; 942 958 #else
Note: See TracChangeset
for help on using the changeset viewer.