Changeset 39 for trunk


Ignore:
Timestamp:
Oct 23, 2010, 5:01:29 PM (14 years ago)
Author:
djay
Message:

Correct indentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-services/ogr/ogr2ogr/service.c

    r38 r39  
    547547        {
    548548#endif
    549         Usage();
    550 #ifdef ZOO_SERVICE
    551                 setMapInMaps(conf,"lenv","message","Wrong parameter");
    552                 return SERVICE_FAILED;
     549          Usage();
     550#ifdef ZOO_SERVICE
     551          setMapInMaps(conf,"lenv","message","Wrong parameter");
     552          return SERVICE_FAILED;
    553553        }
    554554#endif
     
    577577        }
    578578#ifdef ZOO_SERVICE
    579                 char tmp[1024];
    580                 sprintf(tmp,"Unable to open datasource `%s' with the following drivers.",pszDataSource);
    581                 setMapInMaps(conf,"lenv","message",tmp);
    582                 return SERVICE_FAILED;
     579        char tmp[1024];
     580        sprintf(tmp,"Unable to open datasource `%s' with the following drivers.",pszDataSource);
     581        setMapInMaps(conf,"lenv","message",tmp);
     582        return SERVICE_FAILED;
    583583#else
    584584        exit( 1 );
     
    600600                    pszDestDataSource );
    601601#ifdef ZOO_SERVICE
    602                 char tmp[1024];
    603                 sprintf(tmp,"Unable to open existing output datasource `%s'.",pszDestDataSource);
    604                 setMapInMaps(conf,"lenv","message",tmp);
    605                 return SERVICE_FAILED;
     602            char tmp[1024];
     603            sprintf(tmp,"Unable to open existing output datasource `%s'.",pszDestDataSource);
     604            setMapInMaps(conf,"lenv","message",tmp);
     605            return SERVICE_FAILED;
    606606#else
    607607        exit( 1 );
     
    645645            }
    646646#ifdef ZOO_SERVICE
    647                         char tmp[1024];
    648                         sprintf(tmp,"Unable to find driver `%s'.",pszFormat);
    649                         setMapInMaps(conf,"lenv","message",tmp);
    650                         return SERVICE_FAILED;
     647            char tmp[1024];
     648            sprintf(tmp,"Unable to find driver `%s'.",pszFormat);
     649            setMapInMaps(conf,"lenv","message",tmp);
     650            return SERVICE_FAILED;
    651651#else
    652652            exit( 1 );
     
    659659                    pszFormat );
    660660#ifdef ZOO_SERVICE
    661                         char tmp[1024];
    662                         sprintf(tmp,"%s driver does not support data source creation.",pszFormat);
    663                         setMapInMaps(conf,"lenv","message",tmp);
    664                         return SERVICE_FAILED;
     661            char tmp[1024];
     662            sprintf(tmp,"%s driver does not support data source creation.",pszFormat);
     663            setMapInMaps(conf,"lenv","message",tmp);
     664            return SERVICE_FAILED;
    665665#else
    666666            exit( 1 );
     
    677677                    pszFormat, pszDestDataSource );
    678678#ifdef ZOO_SERVICE
    679                         char tmp[1024];
    680                         sprintf(tmp,"%s driver failed to create %s",pszFormat, pszDestDataSource);
    681                         setMapInMaps(conf,"lenv","message",tmp);
    682                         return SERVICE_FAILED;
     679            char tmp[1024];
     680            sprintf(tmp,"%s driver failed to create %s",pszFormat, pszDestDataSource);
     681            setMapInMaps(conf,"lenv","message",tmp);
     682            return SERVICE_FAILED;
    683683#else
    684684            exit( 1 );
     
    698698                    pszOutputSRSDef );
    699699#ifdef ZOO_SERVICE
    700                         char tmp[1024];
    701                         sprintf(tmp,"Failed to process SRS definition: %s",pszOutputSRSDef);
    702                         setMapInMaps(conf,"lenv","message",tmp);
    703                         return SERVICE_FAILED;
     700            char tmp[1024];
     701            sprintf(tmp,"Failed to process SRS definition: %s",pszOutputSRSDef);
     702            setMapInMaps(conf,"lenv","message",tmp);
     703            return SERVICE_FAILED;
    704704#else
    705705            exit( 1 );
     
    719719                    pszSourceSRSDef );
    720720#ifdef ZOO_SERVICE
    721                         char tmp[1024];
    722                         sprintf(tmp,"Failed to process SRS definition: %s",pszOutputSRSDef);
    723                         setMapInMaps(conf,"lenv","message",tmp);
    724                         return SERVICE_FAILED;
     721            char tmp[1024];
     722            sprintf(tmp,"Failed to process SRS definition: %s",pszOutputSRSDef);
     723            setMapInMaps(conf,"lenv","message",tmp);
     724            return SERVICE_FAILED;
    725725#else
    726726            exit( 1 );
     
    775775                    iLayer );
    776776#ifdef ZOO_SERVICE
    777                         char tmp[1024];
    778                         sprintf(tmp,"Couldn't fetch advertised layer %d!",iLayer);
    779                         setMapInMaps(conf,"lenv","message",tmp);
    780                         return SERVICE_FAILED;
    781 #else
    782                         exit( 1 );
     777            char tmp[1024];
     778            sprintf(tmp,"Couldn't fetch advertised layer %d!",iLayer);
     779            setMapInMaps(conf,"lenv","message",tmp);
     780            return SERVICE_FAILED;
     781#else
     782            exit( 1 );
    783783#endif
    784784        }
     
    806806
    807807#ifdef ZOO_SERVICE
    808                                 char tmp[1024];
    809                                 sprintf(tmp,"Terminating translation prematurely after failed of layer %s",poLayer->GetLayerDefn()->GetName() );
    810                                 setMapInMaps(conf,"lenv","message",tmp);
    811                                 return SERVICE_FAILED;
     808                char tmp[1024];
     809                sprintf(tmp,"Terminating translation prematurely after failed of layer %s",poLayer->GetLayerDefn()->GetName() );
     810                setMapInMaps(conf,"lenv","message",tmp);
     811                return SERVICE_FAILED;
    812812#else
    813813                exit( 1 );
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