- Timestamp:
- Oct 23, 2010, 5:01:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-services/ogr/ogr2ogr/service.c
r38 r39 547 547 { 548 548 #endif 549 550 #ifdef ZOO_SERVICE 551 552 549 Usage(); 550 #ifdef ZOO_SERVICE 551 setMapInMaps(conf,"lenv","message","Wrong parameter"); 552 return SERVICE_FAILED; 553 553 } 554 554 #endif … … 577 577 } 578 578 #ifdef ZOO_SERVICE 579 580 581 582 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; 583 583 #else 584 584 exit( 1 ); … … 600 600 pszDestDataSource ); 601 601 #ifdef ZOO_SERVICE 602 603 604 605 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; 606 606 #else 607 607 exit( 1 ); … … 645 645 } 646 646 #ifdef ZOO_SERVICE 647 648 649 650 647 char tmp[1024]; 648 sprintf(tmp,"Unable to find driver `%s'.",pszFormat); 649 setMapInMaps(conf,"lenv","message",tmp); 650 return SERVICE_FAILED; 651 651 #else 652 652 exit( 1 ); … … 659 659 pszFormat ); 660 660 #ifdef ZOO_SERVICE 661 662 663 664 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; 665 665 #else 666 666 exit( 1 ); … … 677 677 pszFormat, pszDestDataSource ); 678 678 #ifdef ZOO_SERVICE 679 680 681 682 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; 683 683 #else 684 684 exit( 1 ); … … 698 698 pszOutputSRSDef ); 699 699 #ifdef ZOO_SERVICE 700 701 702 703 700 char tmp[1024]; 701 sprintf(tmp,"Failed to process SRS definition: %s",pszOutputSRSDef); 702 setMapInMaps(conf,"lenv","message",tmp); 703 return SERVICE_FAILED; 704 704 #else 705 705 exit( 1 ); … … 719 719 pszSourceSRSDef ); 720 720 #ifdef ZOO_SERVICE 721 722 723 724 721 char tmp[1024]; 722 sprintf(tmp,"Failed to process SRS definition: %s",pszOutputSRSDef); 723 setMapInMaps(conf,"lenv","message",tmp); 724 return SERVICE_FAILED; 725 725 #else 726 726 exit( 1 ); … … 775 775 iLayer ); 776 776 #ifdef ZOO_SERVICE 777 778 779 780 781 #else 782 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 ); 783 783 #endif 784 784 } … … 806 806 807 807 #ifdef ZOO_SERVICE 808 809 810 811 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; 812 812 #else 813 813 exit( 1 );
Note: See TracChangeset
for help on using the changeset viewer.