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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-services/gdal/translate/service.c

    r1 r284  
    133133      char *ext=new char[4];
    134134      ext="tif";
    135       if(strcmp(mtoupper((char*)pszFormat),"AAIGRID")==0)
     135      if(strncasecmp(pszFormat,"AAIGRID",7)==0)
    136136        ext="csv";
    137137      else
    138         if(strcmp(mtoupper((char*)pszFormat),"PNG")==0)
     138        if(strncasecmp(pszFormat,"PNG",3)==0)
    139139          ext="png";
    140140        else
    141           if(strcmp(mtoupper((char*)pszFormat),"GIF")==0)
     141          if(strncasecmp(pszFormat,"GIF",3)==0)
    142142            ext="gif";
    143143          else
    144             if(strcmp(mtoupper((char*)pszFormat),"JPEG")==0)
     144            if(strncasecmp(pszFormat,"JPEG",4)==0)
    145145              ext="jpg";
    146146      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