Changeset 284 for trunk/zoo-services/gdal
- Timestamp:
- Aug 1, 2011, 7:08:27 PM (13 years ago)
- Location:
- trunk/zoo-services/gdal
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-services/gdal/grid/Makefile
r1 r284 1 CFLAGS=-I../../../zoo-kernel-svn/ -I./ `xml2-config --cflags` `python-config --cflags` -DLINUX_FREE_ISSUE #-DDEBUG 1 ZRPATH=../../.. 2 include ${ZRPATH}/zoo-kernel/ZOOMakefile.opts 3 CFLAGS=${ZOO_CFLAGS} ${XML2CFLAGS} ${GDAL_CFLAGS} ${PYTHONCFLAGS} -DLINUX_FREE_ISSUE #-DDEBUG 2 4 CC=gcc 3 5 4 6 cgi-env/service.zo: service.c 5 g++ -DZOO_SERVICE ${CFLAGS} -shared -fpic -o cgi-env/gdal_grid_service.zo ./service.c -lgdal7 g++ -DZOO_SERVICE ${CFLAGS} -shared -fpic -o cgi-env/gdal_grid_service.zo ./service.c ${GDAL_LIBS} ${MACOS_LD_FLAGS} 6 8 7 9 clean: -
trunk/zoo-services/gdal/grid/service.c
r1 r284 879 879 char *ext=new char[4]; 880 880 ext="tif"; 881 if(str cmp(mtoupper((char*)pszFormat),"AAIGRID")==0)881 if(strncasecmp(pszFormat,"AAIGRID",7)==0) 882 882 ext="csv"; 883 883 else 884 if(str cmp(mtoupper((char*)pszFormat),"PNG")==0)884 if(strncasecmp(pszFormat,"PNG",3)==0) 885 885 ext="png"; 886 886 else 887 if(str cmp(mtoupper((char*)pszFormat),"GIF")==0)887 if(strncasecmp(pszFormat,"GIF",3)==0) 888 888 ext="gif"; 889 889 else 890 if(str cmp(mtoupper((char*)pszFormat),"JPEG")==0)890 if(strncasecmp(pszFormat,"JPEG",4)==0) 891 891 ext="jpg"; 892 892 sprintf((char*)pszDest,"%s/%s.%s",tempPath,tmpMap->value,ext); -
trunk/zoo-services/gdal/profile/Makefile
r50 r284 1 CFLAGS=-I../../../zoo-kernel/ -I./ `xml2-config --cflags` `python-config --cflags` -DLINUX_FREE_ISSUE #-DDEBUG 1 ZRPATH=../../.. 2 include ${ZRPATH}/zoo-kernel/ZOOMakefile.opts 3 CFLAGS=${ZOO_CFLAGS} ${XML2CFLAGS} ${GDAL_CFLAGS} ${PYTHONCFLAGS} -DLINUX_FREE_ISSUE #-DDEBUG 2 4 CC=gcc 3 5 4 6 cgi-env/gdal_profile_service.zo: service.c 5 g++ -DZOO_SERVICE ${CFLAGS} -shared -fpic -o cgi-env/gdal_profile_service.zo ./service.c -lgdal7 g++ -DZOO_SERVICE ${CFLAGS} -shared -fpic -o cgi-env/gdal_profile_service.zo ./service.c ${GDAL_LIBS} ${MACOS_LD_FLAGS} 6 8 7 9 clean: -
trunk/zoo-services/gdal/translate/Makefile
r1 r284 1 CFLAGS=-I../../../zoo-kernel-svn/ -I./ `xml2-config --cflags` `python-config --cflags` -DLINUX_FREE_ISSUE #-DDEBUG 1 ZRPATH=../../.. 2 include ${ZRPATH}/zoo-kernel/ZOOMakefile.opts 3 CFLAGS=${ZOO_CFLAGS} ${XML2CFLAGS} ${GDAL_CFLAGS} ${PYTHONCFLAGS} -DLINUX_FREE_ISSUE #-DDEBUG 2 4 CC=gcc 3 5 4 6 cgi-env/service.zo: service.c 5 g++ ${CFLAGS} -shared -fpic -o cgi-env/service.zo ./service.c -lgdal7 g++ ${CFLAGS} -shared -fpic -o cgi-env/service.zo ./service.c ${GDAL_LIBS} ${MACOS_LD_FLAGS} 6 8 7 9 clean: 8 rm -f *.zo *.o *.tab.c *.tab.h *.sr.c* service_loader lex.* *.lreg *.sibling 9 rm -rf service_loader.dSYM 10 rm -f cgi-env/*.zo -
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.