Ignore:
Timestamp:
Aug 1, 2011, 7:08:27 PM (13 years ago)
Author:
djay
Message:

Add the ZOOMakefile.opts file used from service providers' Makefiles.

Location:
trunk/zoo-services/gdal/grid
Files:
2 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
     1ZRPATH=../../..
     2include ${ZRPATH}/zoo-kernel/ZOOMakefile.opts
     3CFLAGS=${ZOO_CFLAGS} ${XML2CFLAGS} ${GDAL_CFLAGS} ${PYTHONCFLAGS} -DLINUX_FREE_ISSUE #-DDEBUG
    24CC=gcc
    35
    46cgi-env/service.zo: service.c
    5         g++  -DZOO_SERVICE ${CFLAGS} -shared -fpic -o cgi-env/gdal_grid_service.zo ./service.c -lgdal
     7        g++  -DZOO_SERVICE ${CFLAGS} -shared -fpic -o cgi-env/gdal_grid_service.zo ./service.c ${GDAL_LIBS} ${MACOS_LD_FLAGS}
    68
    79clean:
  • trunk/zoo-services/gdal/grid/service.c

    r1 r284  
    879879      char *ext=new char[4];
    880880      ext="tif";
    881       if(strcmp(mtoupper((char*)pszFormat),"AAIGRID")==0)
     881      if(strncasecmp(pszFormat,"AAIGRID",7)==0)
    882882        ext="csv";
    883883      else
    884         if(strcmp(mtoupper((char*)pszFormat),"PNG")==0)
     884        if(strncasecmp(pszFormat,"PNG",3)==0)
    885885          ext="png";
    886886        else
    887           if(strcmp(mtoupper((char*)pszFormat),"GIF")==0)
     887          if(strncasecmp(pszFormat,"GIF",3)==0)
    888888            ext="gif";
    889889          else
    890             if(strcmp(mtoupper((char*)pszFormat),"JPEG")==0)
     890            if(strncasecmp(pszFormat,"JPEG",4)==0)
    891891              ext="jpg";
    892892      sprintf((char*)pszDest,"%s/%s.%s",tempPath,tmpMap->value,ext);
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png