~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to swig/include/Driver.i

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/******************************************************************************
2
 
 * $Id: Driver.i 16509 2009-03-07 21:06:14Z rouault $
 
2
 * $Id: Driver.i 21479 2011-01-13 02:11:29Z warmerdam $
3
3
 *
4
4
 * Name:     Driver.i
5
5
 * Project:  GDAL Python Interface
51
51
  char const *HelpTopic;
52
52
%mutable;
53
53
 
54
 
%apply Pointer NONNULL { const char *name, const char* newName, const char* oldName, GDALDatasetShadow* src };
 
54
%apply Pointer NONNULL { const char* newName, const char* oldName, GDALDatasetShadow* src };
55
55
 
56
56
%newobject Create;
57
57
#ifndef SWIGJAVA
58
58
%feature( "kwargs" ) Create;
59
59
#endif
60
 
  GDALDatasetShadow *Create(    const char *name, 
 
60
  GDALDatasetShadow *Create(    const char *utf8_path, 
61
61
                                int xsize, 
62
62
                                int ysize, 
63
63
                                int bands = 1,
65
65
                                char **options = 0 ) {
66
66
 
67
67
    GDALDatasetShadow* ds = (GDALDatasetShadow*) GDALCreate(    self, 
68
 
                                                                name, 
 
68
                                                                utf8_path, 
69
69
                                                                xsize, 
70
70
                                                                ysize, 
71
71
                                                                bands, 
80
80
%feature( "kwargs" ) CreateCopy;
81
81
#endif
82
82
#endif
83
 
  GDALDatasetShadow *CreateCopy(    const char *name, 
 
83
  GDALDatasetShadow *CreateCopy(    const char *utf8_path, 
84
84
                                    GDALDatasetShadow* src, 
85
85
                                    int strict = 1, 
86
86
                                    char **options = 0, 
88
88
                                    void* callback_data=NULL) {
89
89
 
90
90
    GDALDatasetShadow *ds = (GDALDatasetShadow*) GDALCreateCopy(    self, 
91
 
                                                                    name, 
 
91
                                                                    utf8_path, 
92
92
                                                                    src, 
93
93
                                                                    strict, 
94
94
                                                                    options, 
97
97
    return ds;
98
98
  }
99
99
 
100
 
  int Delete( const char *name ) {
101
 
    return GDALDeleteDataset( self, name );
 
100
  int Delete( const char *utf8_path ) {
 
101
    return GDALDeleteDataset( self, utf8_path );
102
102
  }
103
103
 
104
104
  int Rename( const char *newName, const char *oldName ) {
105
105
    return GDALRenameDataset( self, newName, oldName );
106
106
  }
107
107
 
 
108
  int CopyFiles( const char *newName, const char *oldName ) {
 
109
    return GDALCopyDatasetFiles( self, newName, oldName );
 
110
  }
 
111
 
108
112
  int Register() {
109
113
    return GDALRegisterDriver( self );
110
114
  }