Changeset 284 for trunk/zoo-services/gdal/translate/service.c
- Timestamp:
- Aug 1, 2011, 7:08:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-services/gdal/translate/service.c
r1 r284 133 133 char *ext=new char[4]; 134 134 ext="tif"; 135 if(str cmp(mtoupper((char*)pszFormat),"AAIGRID")==0)135 if(strncasecmp(pszFormat,"AAIGRID",7)==0) 136 136 ext="csv"; 137 137 else 138 if(str cmp(mtoupper((char*)pszFormat),"PNG")==0)138 if(strncasecmp(pszFormat,"PNG",3)==0) 139 139 ext="png"; 140 140 else 141 if(str cmp(mtoupper((char*)pszFormat),"GIF")==0)141 if(strncasecmp(pszFormat,"GIF",3)==0) 142 142 ext="gif"; 143 143 else 144 if(str cmp(mtoupper((char*)pszFormat),"JPEG")==0)144 if(strncasecmp(pszFormat,"JPEG",4)==0) 145 145 ext="jpg"; 146 146 sprintf((char*)pszDest,"%s/%s.%s",tempPath,tmpMap->value,ext);
Note: See TracChangeset
for help on using the changeset viewer.