Ignore:
Timestamp:
Oct 23, 2010, 4:49:28 PM (14 years ago)
Author:
djay
Message:

Add specific error messages returned to the ZOO Kernel when the service failed. Correct the zcfg file for the Ogr2oOgr service. Use the GDALmake.opt file from the gdal source tree to get the correct flags for compilation.

File:
1 edited

Legend:

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

    r1 r38  
    101101        {
    102102                fprintf(stderr,"Not correct version of the gdal library\n");
     103                setMapInMaps(conf,"lenv","message","Unable to check gdal version for ogr2ogr_service.zo");
    103104                return SERVICE_FAILED;
    104105        }
     
    548549        Usage();
    549550#ifdef ZOO_SERVICE
     551                setMapInMaps(conf,"lenv","message","Wrong parameter");
    550552                return SERVICE_FAILED;
    551553        }
     
    575577        }
    576578#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);
    577582                return SERVICE_FAILED;
    578583#else
     
    595600                    pszDestDataSource );
    596601#ifdef ZOO_SERVICE
     602                char tmp[1024];
     603                sprintf(tmp,"Unable to open existing output datasource `%s'.",pszDestDataSource);
     604                setMapInMaps(conf,"lenv","message",tmp);
    597605                return SERVICE_FAILED;
    598606#else
     
    637645            }
    638646#ifdef ZOO_SERVICE
     647                        char tmp[1024];
     648                        sprintf(tmp,"Unable to find driver `%s'.",pszFormat);
     649                        setMapInMaps(conf,"lenv","message",tmp);
    639650                        return SERVICE_FAILED;
    640651#else
     
    648659                    pszFormat );
    649660#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);
    650664                        return SERVICE_FAILED;
    651665#else
     
    663677                    pszFormat, pszDestDataSource );
    664678#ifdef ZOO_SERVICE
     679                        char tmp[1024];
     680                        sprintf(tmp,"%s driver failed to create %s",pszFormat, pszDestDataSource);
     681                        setMapInMaps(conf,"lenv","message",tmp);
    665682                        return SERVICE_FAILED;
    666683#else
     
    681698                    pszOutputSRSDef );
    682699#ifdef ZOO_SERVICE
     700                        char tmp[1024];
     701                        sprintf(tmp,"Failed to process SRS definition: %s",pszOutputSRSDef);
     702                        setMapInMaps(conf,"lenv","message",tmp);
    683703                        return SERVICE_FAILED;
    684704#else
     
    699719                    pszSourceSRSDef );
    700720#ifdef ZOO_SERVICE
     721                        char tmp[1024];
     722                        sprintf(tmp,"Failed to process SRS definition: %s",pszOutputSRSDef);
     723                        setMapInMaps(conf,"lenv","message",tmp);
    701724                        return SERVICE_FAILED;
    702725#else
     
    752775                    iLayer );
    753776#ifdef ZOO_SERVICE
     777                        char tmp[1024];
     778                        sprintf(tmp,"Couldn't fetch advertised layer %d!",iLayer);
     779                        setMapInMaps(conf,"lenv","message",tmp);
    754780                        return SERVICE_FAILED;
    755781#else
     
    780806
    781807#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);
    782811                                return SERVICE_FAILED;
    783812#else
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