Package osgeo :: Module gdal |
[hide private]
[frames] | no frames]

# Source Code for Module osgeo.gdal

       1  # This file was automatically generated by SWIG (http://www.swig.org).
       2  # Version 1.3.40
       3  #
       4  # Do not make changes to this file unless you know what you are doing--modify
       5  # the SWIG interface file instead.
       6  # This file is compatible with both classic and new-style classes.
       7
       8  from sys import version_info
       9  if version_info >= (2,6,0):
      10 -    def swig_import_helper():
      11          from os.path import dirname
      12          import imp
      13          fp = None
      14          try:
      15              fp, pathname, description = imp.find_module('_gdal', [dirname(__file__)])
      16          except ImportError:
      17              import _gdal
      18              return _gdal
      19          if fp is not None:
      20              try:
      21                  _mod = imp.load_module('_gdal', fp, pathname, description)
      22              finally:
      23                  fp.close()
      24              return _mod
      25      _gdal = swig_import_helper()
      26      del swig_import_helper
      27  else:
      28      import _gdal
      29  del version_info
      30  try:
      31      _swig_property = property
      32  except NameError:
      33      pass # Python < 2.2 doesn't have 'property'.
      34 -def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
      35      if (name == "thisown"): return self.this.own(value)
      36      if (name == "this"):
      37          if type(value).__name__ == 'SwigPyObject':
      38              self.__dict__[name] = value
      39              return
      40      method = class_type.__swig_setmethods__.get(name,None)
      41      if method: return method(self,value)
      42      if (not static) or hasattr(self,name):
      43          self.__dict__[name] = value
      44      else:
      45          raise AttributeError("You cannot add attributes to %s" % self)
      46
      47 -def _swig_setattr(self,class_type,name,value):
      48      return _swig_setattr_nondynamic(self,class_type,name,value,0)
      49
      50 -def _swig_getattr(self,class_type,name):
      51      if (name == "thisown"): return self.this.own()
      52      method = class_type.__swig_getmethods__.get(name,None)
      53      if method: return method(self)
      54      raise AttributeError(name)
      55
      56 -def _swig_repr(self):
      57      try: strthis = "proxy of " + self.this.__repr__()
      58      except: strthis = ""
      59      return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
      60
      61  try:
      62      _object = object
      63      _newclass = 1
      64  except AttributeError:
      65 -    class _object : pass
      66      _newclass = 0
      67
      68
      69  have_warned = 0
      70 -def deprecation_warn( module ):
      71    global have_warned
      72
      73    if have_warned == 1:
      74        return
      75
      76    have_warned = 1
      77
      78    from warnings import warn
      79    warn('%s.py was placed in a namespace, it is now available as osgeo.%s' % (module,module),
      80         DeprecationWarning)
      81
      82
      83  from gdalconst import *
      84  import gdalconst
      85
      86
      87  import sys
      88  byteorders = {"little": "<",
      89                "big": ">"}
      90  array_modes = { gdalconst.GDT_Int16:    ("%si2" % byteorders[sys.byteorder]),
      91                  gdalconst.GDT_UInt16:   ("%su2" % byteorders[sys.byteorder]),
      92                  gdalconst.GDT_Int32:    ("%si4" % byteorders[sys.byteorder]),
      93                  gdalconst.GDT_UInt32:   ("%su4" % byteorders[sys.byteorder]),
      94                  gdalconst.GDT_Float32:  ("%sf4" % byteorders[sys.byteorder]),
      95                  gdalconst.GDT_Float64:  ("%sf8" % byteorders[sys.byteorder]),
      96                  gdalconst.GDT_CFloat32: ("%sf4" % byteorders[sys.byteorder]),
      97                  gdalconst.GDT_CFloat64: ("%sf8" % byteorders[sys.byteorder]),
      98                  gdalconst.GDT_Byte:     ("%st8" % byteorders[sys.byteorder]),
      99  }
     100
     101 -def RGBFile2PCTFile( src_filename, dst_filename ):
     102    src_ds = Open(src_filename)
     103    if src_ds is None or src_ds == 'NULL':
     104        return 1
     105
     106    ct = ColorTable()
     107    err = ComputeMedianCutPCT( src_ds.GetRasterBand(1),
     108                               src_ds.GetRasterBand(2),
     109                               src_ds.GetRasterBand(3),
     110                               256, ct )
     111    if err != 0:
     112        return err
     113
     114    gtiff_driver = GetDriverByName('GTiff')
     115    if gtiff_driver is None:
     116        return 1
     117
     118    dst_ds = gtiff_driver.Create( dst_filename,
     119                                  src_ds.RasterXSize, src_ds.RasterYSize )
     120    dst_ds.GetRasterBand(1).SetRasterColorTable( ct )
     121
     122    err = DitherRGB2PCT( src_ds.GetRasterBand(1),
     123                         src_ds.GetRasterBand(2),
     124                         src_ds.GetRasterBand(3),
     125                         dst_ds.GetRasterBand(1),
     126                         ct )
     127    dst_ds = None
     128    src_ds = None
     129
     130    return 0
     131
     132
     133 -def GetUseExceptions(*args):
     134    """GetUseExceptions() -> int"""
     135    return _gdal.GetUseExceptions(*args)
     136
     137 -def UseExceptions(*args):
     138    """UseExceptions()"""
     139    return _gdal.UseExceptions(*args)
     140
     141 -def DontUseExceptions(*args):
     142    """DontUseExceptions()"""
     143    return _gdal.DontUseExceptions(*args)
     144
     145 -def VSIFReadL(*args):
     146    """VSIFReadL(int nMembSize, int nMembCount, VSILFILE fp) -> int"""
     147    return _gdal.VSIFReadL(*args)
     148
     149 -def Debug(*args):
     150    """Debug(char msg_class, char message)"""
     151    return _gdal.Debug(*args)
     152
     153 -def Error(*args):
     154    """Error(CPLErr msg_class = CE_Failure, int err_code = 0, char msg = "error")"""
     155    return _gdal.Error(*args)
     156
     157 -def PopErrorHandler(*args):
     158    """PopErrorHandler()"""
     159    return _gdal.PopErrorHandler(*args)
     160
     161 -def ErrorReset(*args):
     162    """ErrorReset()"""
     163    return _gdal.ErrorReset(*args)
     164
     165 -def EscapeString(*args, **kwargs):
     166    """EscapeString(int len, int scheme = CPLES_SQL) -> retStringAndCPLFree"""
     167    return _gdal.EscapeString(*args, **kwargs)
     168
     169 -def GetLastErrorNo(*args):
     170    """GetLastErrorNo() -> int"""
     171    return _gdal.GetLastErrorNo(*args)
     172
     173 -def GetLastErrorType(*args):
     174    """GetLastErrorType() -> int"""
     175    return _gdal.GetLastErrorType(*args)
     176
     177 -def GetLastErrorMsg(*args):
     178    """GetLastErrorMsg() -> char"""
     179    return _gdal.GetLastErrorMsg(*args)
     180
     181 -def PushFinderLocation(*args):
     182    """PushFinderLocation(char utf8_path)"""
     183    return _gdal.PushFinderLocation(*args)
     184
     185 -def PopFinderLocation(*args):
     186    """PopFinderLocation()"""
     187    return _gdal.PopFinderLocation(*args)
     188
     189 -def FinderClean(*args):
     190    """FinderClean()"""
     191    return _gdal.FinderClean(*args)
     192
     193 -def FindFile(*args):
     194    """FindFile(char pszClass, char utf8_path) -> char"""
     195    return _gdal.FindFile(*args)
     196
     197 -def ReadDir(*args):
     198    """ReadDir(char utf8_path) -> char"""
     199    return _gdal.ReadDir(*args)
     200
     201 -def SetConfigOption(*args):
     202    """SetConfigOption(char pszKey, char pszValue)"""
     203    return _gdal.SetConfigOption(*args)
     204
     205 -def GetConfigOption(*args):
     206    """GetConfigOption(char pszKey, char pszDefault = None) -> char"""
     207    return _gdal.GetConfigOption(*args)
     208
     209 -def CPLBinaryToHex(*args):
     210    """CPLBinaryToHex(int nBytes) -> retStringAndCPLFree"""
     211    return _gdal.CPLBinaryToHex(*args)
     212
     213 -def CPLHexToBinary(*args):
     214    """CPLHexToBinary(char pszHex, int pnBytes) -> GByte"""
     215    return _gdal.CPLHexToBinary(*args)
     216
     217 -def FileFromMemBuffer(*args):
     218    """FileFromMemBuffer(char utf8_path, int nBytes)"""
     219    return _gdal.FileFromMemBuffer(*args)
     220
     221 -def Unlink(*args):
     222    """Unlink(char utf8_path) -> int"""
     223    return _gdal.Unlink(*args)
     224
     225 -def HasThreadSupport(*args):
     226    """HasThreadSupport() -> int"""
     227    return _gdal.HasThreadSupport(*args)
     228
     229 -def Mkdir(*args):
     230    """Mkdir(char utf8_path, int mode) -> int"""
     231    return _gdal.Mkdir(*args)
     232
     233 -def Rmdir(*args):
     234    """Rmdir(char utf8_path) -> int"""
     235    return _gdal.Rmdir(*args)
     236
     237 -def Rename(*args):
     238    """Rename(char pszOld, char pszNew) -> int"""
     239    return _gdal.Rename(*args)
     240  VSI_STAT_EXISTS_FLAG = _gdal.VSI_STAT_EXISTS_FLAG
     241  VSI_STAT_NATURE_FLAG = _gdal.VSI_STAT_NATURE_FLAG
     242  VSI_STAT_SIZE_FLAG = _gdal.VSI_STAT_SIZE_FLAG
     243 -class StatBuf(_object):
     244      """Proxy of C++ StatBuf class"""
     245      __swig_setmethods__ = {}
     246      __setattr__ = lambda self, name, value: _swig_setattr(self, StatBuf, name, value)
     247      __swig_getmethods__ = {}
     248      __getattr__ = lambda self, name: _swig_getattr(self, StatBuf, name)
     249      __repr__ = _swig_repr
     250      __swig_getmethods__["mode"] = _gdal.StatBuf_mode_get
     251      if _newclass:mode = _swig_property(_gdal.StatBuf_mode_get)
     252      __swig_getmethods__["size"] = _gdal.StatBuf_size_get
     253      if _newclass:size = _swig_property(_gdal.StatBuf_size_get)
     254      __swig_getmethods__["mtime"] = _gdal.StatBuf_mtime_get
     255      if _newclass:mtime = _swig_property(_gdal.StatBuf_mtime_get)
     256 -    def __init__(self, *args):
     257          """__init__(self, StatBuf psStatBuf) -> StatBuf"""
     258          this = _gdal.new_StatBuf(*args)
     259          try: self.this.append(this)
     260          except: self.this = this
     261      __swig_destroy__ = _gdal.delete_StatBuf
     262      __del__ = lambda self : None;
     263 -    def IsDirectory(self, *args):
     264          """IsDirectory(self) -> int"""
     265          return _gdal.StatBuf_IsDirectory(self, *args)
     266
     267  StatBuf_swigregister = _gdal.StatBuf_swigregister
     268  StatBuf_swigregister(StatBuf)
     269
     270 -def PushErrorHandler(*args):
     271    """
     272      PushErrorHandler(char pszCallbackName = None) -> CPLErr
     273      PushErrorHandler(CPLErrorHandler arg0)
     274      """
     275    return _gdal.PushErrorHandler(*args)
     276
     277
     278 -def VSIStatL(*args):
     279    """VSIStatL(char utf8_path, int nFlags = 0) -> int"""
     280    return _gdal.VSIStatL(*args)
     281
     282 -def VSIFOpenL(*args):
     283    """VSIFOpenL(char utf8_path, char pszMode) -> VSILFILE"""
     284    return _gdal.VSIFOpenL(*args)
     285
     286 -def VSIFCloseL(*args):
     287    """VSIFCloseL(VSILFILE arg0)"""
     288    return _gdal.VSIFCloseL(*args)
     289
     290 -def VSIFSeekL(*args):
     291    """VSIFSeekL(VSILFILE arg0, GIntBig arg1, int arg2) -> int"""
     292    return _gdal.VSIFSeekL(*args)
     293
     294 -def VSIFTellL(*args):
     295    """VSIFTellL(VSILFILE arg0) -> GIntBig"""
     296    return _gdal.VSIFTellL(*args)
     297
     298 -def VSIFTruncateL(*args):
     299    """VSIFTruncateL(VSILFILE arg0, GIntBig arg1) -> int"""
     300    return _gdal.VSIFTruncateL(*args)
     301
     302 -def VSIFWriteL(*args):
     303    """VSIFWriteL(int nLen, int size, int memb, VSILFILE f) -> int"""
     304    return _gdal.VSIFWriteL(*args)
     305 -class MajorObject(_object):
     306      """Proxy of C++ GDALMajorObjectShadow class"""
     307      __swig_setmethods__ = {}
     308      __setattr__ = lambda self, name, value: _swig_setattr(self, MajorObject, name, value)
     309      __swig_getmethods__ = {}
     310      __getattr__ = lambda self, name: _swig_getattr(self, MajorObject, name)
     311 -    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
     312      __repr__ = _swig_repr
     313 -    def GetDescription(self, *args):
     314          """GetDescription(self) -> char"""
     315          return _gdal.MajorObject_GetDescription(self, *args)
     316
     317 -    def SetDescription(self, *args):
     318          """SetDescription(self, char pszNewDesc)"""
     319          return _gdal.MajorObject_SetDescription(self, *args)
     320
     321 -    def GetMetadata_Dict(self, *args):
     322          """GetMetadata_Dict(self, char pszDomain = "") -> char"""
     323          return _gdal.MajorObject_GetMetadata_Dict(self, *args)
     324
     325 -    def GetMetadata_List(self, *args):
     326          """GetMetadata_List(self, char pszDomain = "") -> char"""
     327          return _gdal.MajorObject_GetMetadata_List(self, *args)
     328
     329 -    def SetMetadata(self, *args):
     330          """
     331          SetMetadata(self, char papszMetadata, char pszDomain = "") -> CPLErr
     332          SetMetadata(self, char pszMetadataString, char pszDomain = "") -> CPLErr
     333          """
     334          return _gdal.MajorObject_SetMetadata(self, *args)
     335
     336 -    def GetMetadataItem(self, *args):
     337          """GetMetadataItem(self, char pszName, char pszDomain = "") -> char"""
     338          return _gdal.MajorObject_GetMetadataItem(self, *args)
     339
     340 -    def SetMetadataItem(self, *args):
     341          """SetMetadataItem(self, char pszName, char pszValue, char pszDomain = "") -> CPLErr"""
     342          return _gdal.MajorObject_SetMetadataItem(self, *args)
     343
     344 -    def GetMetadata( self, domain = '' ):
     345        if domain[:4] == 'xml:':
     346          return self.GetMetadata_List( domain )
     347        return self.GetMetadata_Dict( domain )
     348
     349  MajorObject_swigregister = _gdal.MajorObject_swigregister
     350  MajorObject_swigregister(MajorObject)
     351
     352 -class Driver(MajorObject):
     353      """Proxy of C++ GDALDriverShadow class"""
     354      __swig_setmethods__ = {}
     355      for _s in [MajorObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
     356      __setattr__ = lambda self, name, value: _swig_setattr(self, Driver, name, value)
     357      __swig_getmethods__ = {}
     358      for _s in [MajorObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
     359      __getattr__ = lambda self, name: _swig_getattr(self, Driver, name)
     360 -    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
     361      __repr__ = _swig_repr
     362      __swig_getmethods__["ShortName"] = _gdal.Driver_ShortName_get
     363      if _newclass:ShortName = _swig_property(_gdal.Driver_ShortName_get)
     364      __swig_getmethods__["LongName"] = _gdal.Driver_LongName_get
     365      if _newclass:LongName = _swig_property(_gdal.Driver_LongName_get)
     366      __swig_getmethods__["HelpTopic"] = _gdal.Driver_HelpTopic_get
     367      if _newclass:HelpTopic = _swig_property(_gdal.Driver_HelpTopic_get)
     368 -    def Create(self, *args, **kwargs):
     369          """
     370          Create(self, char utf8_path, int xsize, int ysize, int bands = 1,
     371              GDALDataType eType = GDT_Byte, char options = None) -> Dataset
     372          """
     373          return _gdal.Driver_Create(self, *args, **kwargs)
     374
     375 -    def CreateCopy(self, *args, **kwargs):
     376          """
     377          CreateCopy(self, char utf8_path, Dataset src, int strict = 1, char options = None,
     378              GDALProgressFunc callback = None,
     379              void callback_data = None) -> Dataset
     380          """
     381          return _gdal.Driver_CreateCopy(self, *args, **kwargs)
     382
     383 -    def Delete(self, *args):
     384          """Delete(self, char utf8_path) -> int"""
     385          return _gdal.Driver_Delete(self, *args)
     386
     387 -    def Rename(self, *args):
     388          """Rename(self, char newName, char oldName) -> int"""
     389          return _gdal.Driver_Rename(self, *args)
     390
     391 -    def CopyFiles(self, *args):
     392          """CopyFiles(self, char newName, char oldName) -> int"""
     393          return _gdal.Driver_CopyFiles(self, *args)
     394
     395 -    def Register(self, *args):
     396          """Register(self) -> int"""
     397          return _gdal.Driver_Register(self, *args)
     398
     399 -    def Deregister(self, *args):
     400          """Deregister(self)"""
     401          return _gdal.Driver_Deregister(self, *args)
     402
     403  Driver_swigregister = _gdal.Driver_swigregister
     404  Driver_swigregister(Driver)
     405
     406 -class ColorEntry(_object):
     407      """Proxy of C++ GDALColorEntry class"""
     408      __swig_setmethods__ = {}
     409      __setattr__ = lambda self, name, value: _swig_setattr(self, ColorEntry, name, value)
     410      __swig_getmethods__ = {}
     411      __getattr__ = lambda self, name: _swig_getattr(self, ColorEntry, name)
     412      __repr__ = _swig_repr
     413      __swig_setmethods__["c1"] = _gdal.ColorEntry_c1_set
     414      __swig_getmethods__["c1"] = _gdal.ColorEntry_c1_get
     415      if _newclass:c1 = _swig_property(_gdal.ColorEntry_c1_get, _gdal.ColorEntry_c1_set)
     416      __swig_setmethods__["c2"] = _gdal.ColorEntry_c2_set
     417      __swig_getmethods__["c2"] = _gdal.ColorEntry_c2_get
     418      if _newclass:c2 = _swig_property(_gdal.ColorEntry_c2_get, _gdal.ColorEntry_c2_set)
     419      __swig_setmethods__["c3"] = _gdal.ColorEntry_c3_set
     420      __swig_getmethods__["c3"] = _gdal.ColorEntry_c3_get
     421      if _newclass:c3 = _swig_property(_gdal.ColorEntry_c3_get, _gdal.ColorEntry_c3_set)
     422      __swig_setmethods__["c4"] = _gdal.ColorEntry_c4_set
     423      __swig_getmethods__["c4"] = _gdal.ColorEntry_c4_get
     424      if _newclass:c4 = _swig_property(_gdal.ColorEntry_c4_get, _gdal.ColorEntry_c4_set)
     425 -    def __init__(self, *args):
     426          """__init__(self) -> ColorEntry"""
     427          this = _gdal.new_ColorEntry(*args)
     428          try: self.this.append(this)
     429          except: self.this = this
     430      __swig_destroy__ = _gdal.delete_ColorEntry
     431      __del__ = lambda self : None;
     432  ColorEntry_swigregister = _gdal.ColorEntry_swigregister
     433  ColorEntry_swigregister(ColorEntry)
     434
     435 -class GCP(_object):
     436      """Proxy of C++ GDAL_GCP class"""
     437      __swig_setmethods__ = {}
     438      __setattr__ = lambda self, name, value: _swig_setattr(self, GCP, name, value)
     439      __swig_getmethods__ = {}
     440      __getattr__ = lambda self, name: _swig_getattr(self, GCP, name)
     441      __repr__ = _swig_repr
     442      __swig_setmethods__["GCPX"] = _gdal.GCP_GCPX_set
     443      __swig_getmethods__["GCPX"] = _gdal.GCP_GCPX_get
     444      if _newclass:GCPX = _swig_property(_gdal.GCP_GCPX_get, _gdal.GCP_GCPX_set)
     445      __swig_setmethods__["GCPY"] = _gdal.GCP_GCPY_set
     446      __swig_getmethods__["GCPY"] = _gdal.GCP_GCPY_get
     447      if _newclass:GCPY = _swig_property(_gdal.GCP_GCPY_get, _gdal.GCP_GCPY_set)
     448      __swig_setmethods__["GCPZ"] = _gdal.GCP_GCPZ_set
     449      __swig_getmethods__["GCPZ"] = _gdal.GCP_GCPZ_get
     450      if _newclass:GCPZ = _swig_property(_gdal.GCP_GCPZ_get, _gdal.GCP_GCPZ_set)
     451      __swig_setmethods__["GCPPixel"] = _gdal.GCP_GCPPixel_set
     452      __swig_getmethods__["GCPPixel"] = _gdal.GCP_GCPPixel_get
     453      if _newclass:GCPPixel = _swig_property(_gdal.GCP_GCPPixel_get, _gdal.GCP_GCPPixel_set)
     454      __swig_setmethods__["GCPLine"] = _gdal.GCP_GCPLine_set
     455      __swig_getmethods__["GCPLine"] = _gdal.GCP_GCPLine_get
     456      if _newclass:GCPLine = _swig_property(_gdal.GCP_GCPLine_get, _gdal.GCP_GCPLine_set)
     457      __swig_setmethods__["Info"] = _gdal.GCP_Info_set
     458      __swig_getmethods__["Info"] = _gdal.GCP_Info_get
     459      if _newclass:Info = _swig_property(_gdal.GCP_Info_get, _gdal.GCP_Info_set)
     460      __swig_setmethods__["Id"] = _gdal.GCP_Id_set
     461      __swig_getmethods__["Id"] = _gdal.GCP_Id_get
     462      if _newclass:Id = _swig_property(_gdal.GCP_Id_get, _gdal.GCP_Id_set)
     463 -    def __init__(self, *args):
     464          """
     465          __init__(self, double x = 0.0, double y = 0.0, double z = 0.0, double pixel = 0.0,
     466              double line = 0.0, char info = "",
     467              char id = "") -> GCP
     468          """
     469          this = _gdal.new_GCP(*args)
     470          try: self.this.append(this)
     471          except: self.this = this
     472      __swig_destroy__ = _gdal.delete_GCP
     473      __del__ = lambda self : None;
     474 -    def __str__(self):
     475        str = '%s (%.2fP,%.2fL) -> (%.7fE,%.7fN,%.2f) %s '\
     476              % (self.Id, self.GCPPixel, self.GCPLine,
     477                 self.GCPX, self.GCPY, self.GCPZ, self.Info )
     478        return str
     479
     480 -    def serialize(self,with_Z=0):
     481        base = [CXT_Element,'GCP']
     482        base.append([CXT_Attribute,'Id',[CXT_Text,self.Id]])
     483        pixval = '%0.15E' % self.GCPPixel
     484        lineval = '%0.15E' % self.GCPLine
     485        xval = '%0.15E' % self.GCPX
     486        yval = '%0.15E' % self.GCPY
     487        zval = '%0.15E' % self.GCPZ
     488        base.append([CXT_Attribute,'Pixel',[CXT_Text,pixval]])
     489        base.append([CXT_Attribute,'Line',[CXT_Text,lineval]])
     490        base.append([CXT_Attribute,'X',[CXT_Text,xval]])
     491        base.append([CXT_Attribute,'Y',[CXT_Text,yval]])
     492        if with_Z:
     493            base.append([CXT_Attribute,'Z',[CXT_Text,zval]])
     494        return base
     495
     496  GCP_swigregister = _gdal.GCP_swigregister
     497  GCP_swigregister(GCP)
     498
     499
     500 -def GDAL_GCP_GCPX_get(*args):
     501    """GDAL_GCP_GCPX_get(GCP gcp) -> double"""
     502    return _gdal.GDAL_GCP_GCPX_get(*args)
     503
     504 -def GDAL_GCP_GCPX_set(*args):
     505    """GDAL_GCP_GCPX_set(GCP gcp, double dfGCPX)"""
     506    return _gdal.GDAL_GCP_GCPX_set(*args)
     507
     508 -def GDAL_GCP_GCPY_get(*args):
     509    """GDAL_GCP_GCPY_get(GCP gcp) -> double"""
     510    return _gdal.GDAL_GCP_GCPY_get(*args)
     511
     512 -def GDAL_GCP_GCPY_set(*args):
     513    """GDAL_GCP_GCPY_set(GCP gcp, double dfGCPY)"""
     514    return _gdal.GDAL_GCP_GCPY_set(*args)
     515
     516 -def GDAL_GCP_GCPZ_get(*args):
     517    """GDAL_GCP_GCPZ_get(GCP gcp) -> double"""
     518    return _gdal.GDAL_GCP_GCPZ_get(*args)
     519
     520 -def GDAL_GCP_GCPZ_set(*args):
     521    """GDAL_GCP_GCPZ_set(GCP gcp, double dfGCPZ)"""
     522    return _gdal.GDAL_GCP_GCPZ_set(*args)
     523
     524 -def GDAL_GCP_GCPPixel_get(*args):
     525    """GDAL_GCP_GCPPixel_get(GCP gcp) -> double"""
     526    return _gdal.GDAL_GCP_GCPPixel_get(*args)
     527
     528 -def GDAL_GCP_GCPPixel_set(*args):
     529    """GDAL_GCP_GCPPixel_set(GCP gcp, double dfGCPPixel)"""
     530    return _gdal.GDAL_GCP_GCPPixel_set(*args)
     531
     532 -def GDAL_GCP_GCPLine_get(*args):
     533    """GDAL_GCP_GCPLine_get(GCP gcp) -> double"""
     534    return _gdal.GDAL_GCP_GCPLine_get(*args)
     535
     536 -def GDAL_GCP_GCPLine_set(*args):
     537    """GDAL_GCP_GCPLine_set(GCP gcp, double dfGCPLine)"""
     538    return _gdal.GDAL_GCP_GCPLine_set(*args)
     539
     540 -def GDAL_GCP_Info_get(*args):
     541    """GDAL_GCP_Info_get(GCP gcp) -> char"""
     542    return _gdal.GDAL_GCP_Info_get(*args)
     543
     544 -def GDAL_GCP_Info_set(*args):
     545    """GDAL_GCP_Info_set(GCP gcp, char pszInfo)"""
     546    return _gdal.GDAL_GCP_Info_set(*args)
     547
     548 -def GDAL_GCP_Id_get(*args):
     549    """GDAL_GCP_Id_get(GCP gcp) -> char"""
     550    return _gdal.GDAL_GCP_Id_get(*args)
     551
     552 -def GDAL_GCP_Id_set(*args):
     553    """GDAL_GCP_Id_set(GCP gcp, char pszId)"""
     554    return _gdal.GDAL_GCP_Id_set(*args)
     555
     556 -def GDAL_GCP_get_GCPX(*args):
     557    """GDAL_GCP_get_GCPX(GCP gcp) -> double"""
     558    return _gdal.GDAL_GCP_get_GCPX(*args)
     559
     560 -def GDAL_GCP_set_GCPX(*args):
     561    """GDAL_GCP_set_GCPX(GCP gcp, double dfGCPX)"""
     562    return _gdal.GDAL_GCP_set_GCPX(*args)
     563
     564 -def GDAL_GCP_get_GCPY(*args):
     565    """GDAL_GCP_get_GCPY(GCP gcp) -> double"""
     566    return _gdal.GDAL_GCP_get_GCPY(*args)
     567
     568 -def GDAL_GCP_set_GCPY(*args):
     569    """GDAL_GCP_set_GCPY(GCP gcp, double dfGCPY)"""
     570    return _gdal.GDAL_GCP_set_GCPY(*args)
     571
     572 -def GDAL_GCP_get_GCPZ(*args):
     573    """GDAL_GCP_get_GCPZ(GCP gcp) -> double"""
     574    return _gdal.GDAL_GCP_get_GCPZ(*args)
     575
     576 -def GDAL_GCP_set_GCPZ(*args):
     577    """GDAL_GCP_set_GCPZ(GCP gcp, double dfGCPZ)"""
     578    return _gdal.GDAL_GCP_set_GCPZ(*args)
     579
     580 -def GDAL_GCP_get_GCPPixel(*args):
     581    """GDAL_GCP_get_GCPPixel(GCP gcp) -> double"""
     582    return _gdal.GDAL_GCP_get_GCPPixel(*args)
     583
     584 -def GDAL_GCP_set_GCPPixel(*args):
     585    """GDAL_GCP_set_GCPPixel(GCP gcp, double dfGCPPixel)"""
     586    return _gdal.GDAL_GCP_set_GCPPixel(*args)
     587
     588 -def GDAL_GCP_get_GCPLine(*args):
     589    """GDAL_GCP_get_GCPLine(GCP gcp) -> double"""
     590    return _gdal.GDAL_GCP_get_GCPLine(*args)
     591
     592 -def GDAL_GCP_set_GCPLine(*args):
     593    """GDAL_GCP_set_GCPLine(GCP gcp, double dfGCPLine)"""
     594    return _gdal.GDAL_GCP_set_GCPLine(*args)
     595
     596 -def GDAL_GCP_get_Info(*args):
     597    """GDAL_GCP_get_Info(GCP gcp) -> char"""
     598    return _gdal.GDAL_GCP_get_Info(*args)
     599
     600 -def GDAL_GCP_set_Info(*args):
     601    """GDAL_GCP_set_Info(GCP gcp, char pszInfo)"""
     602    return _gdal.GDAL_GCP_set_Info(*args)
     603
     604 -def GDAL_GCP_get_Id(*args):
     605    """GDAL_GCP_get_Id(GCP gcp) -> char"""
     606    return _gdal.GDAL_GCP_get_Id(*args)
     607
     608 -def GDAL_GCP_set_Id(*args):
     609    """GDAL_GCP_set_Id(GCP gcp, char pszId)"""
     610    return _gdal.GDAL_GCP_set_Id(*args)
     611
     612 -def GCPsToGeoTransform(*args):
     613    """GCPsToGeoTransform(int nGCPs, int bApproxOK = 1) -> RETURN_NONE"""
     614    return _gdal.GCPsToGeoTransform(*args)
     615 -class AsyncReader(_object):
     616      """Proxy of C++ GDALAsyncReaderShadow class"""
     617      __swig_setmethods__ = {}
     618      __setattr__ = lambda self, name, value: _swig_setattr(self, AsyncReader, name, value)
     619      __swig_getmethods__ = {}
     620      __getattr__ = lambda self, name: _swig_getattr(self, AsyncReader, name)
     621 -    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
     622      __repr__ = _swig_repr
     623      __swig_destroy__ = _gdal.delete_AsyncReader
     624      __del__ = lambda self : None;
     625 -    def GetNextUpdatedRegion(self, *args):
     626          """GetNextUpdatedRegion(self, double timeout) -> GDALAsyncStatusType"""
     627          return _gdal.AsyncReader_GetNextUpdatedRegion(self, *args)
     628
     629 -    def GetBuffer(self, *args):
     630          """GetBuffer(self)"""
     631          return _gdal.AsyncReader_GetBuffer(self, *args)
     632
     633 -    def LockBuffer(self, *args):
     634          """LockBuffer(self, double timeout) -> int"""
     635          return _gdal.AsyncReader_LockBuffer(self, *args)
     636
     637 -    def UnlockBuffer(self, *args):
     638          """UnlockBuffer(self)"""
     639          return _gdal.AsyncReader_UnlockBuffer(self, *args)
     640
     641  AsyncReader_swigregister = _gdal.AsyncReader_swigregister
     642  AsyncReader_swigregister(AsyncReader)
     643
     644 -class Dataset(MajorObject):
     645      """Proxy of C++ GDALDatasetShadow class"""
     646      __swig_setmethods__ = {}
     647      for _s in [MajorObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
     648      __setattr__ = lambda self, name, value: _swig_setattr(self, Dataset, name, value)
     649      __swig_getmethods__ = {}
     650      for _s in [MajorObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
     651      __getattr__ = lambda self, name: _swig_getattr(self, Dataset, name)
     652 -    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
     653      __repr__ = _swig_repr
     654      __swig_getmethods__["RasterXSize"] = _gdal.Dataset_RasterXSize_get
     655      if _newclass:RasterXSize = _swig_property(_gdal.Dataset_RasterXSize_get)
     656      __swig_getmethods__["RasterYSize"] = _gdal.Dataset_RasterYSize_get
     657      if _newclass:RasterYSize = _swig_property(_gdal.Dataset_RasterYSize_get)
     658      __swig_getmethods__["RasterCount"] = _gdal.Dataset_RasterCount_get
     659      if _newclass:RasterCount = _swig_property(_gdal.Dataset_RasterCount_get)
     660      __swig_destroy__ = _gdal.delete_Dataset
     661      __del__ = lambda self : None;
     662 -    def GetDriver(self, *args):
     663          """GetDriver(self) -> Driver"""
     664          return _gdal.Dataset_GetDriver(self, *args)
     665
     666 -    def GetRasterBand(self, *args):
     667          """GetRasterBand(self, int nBand) -> Band"""
     668          return _gdal.Dataset_GetRasterBand(self, *args)
     669
     670 -    def GetProjection(self, *args):
     671          """GetProjection(self) -> char"""
     672          return _gdal.Dataset_GetProjection(self, *args)
     673
     674 -    def GetProjectionRef(self, *args):
     675          """GetProjectionRef(self) -> char"""
     676          return _gdal.Dataset_GetProjectionRef(self, *args)
     677
     678 -    def SetProjection(self, *args):
     679          """SetProjection(self, char prj) -> CPLErr"""
     680          return _gdal.Dataset_SetProjection(self, *args)
     681
     682 -    def GetGeoTransform(self, *args, **kwargs):
     683          """GetGeoTransform(self, int can_return_null = None)"""
     684          return _gdal.Dataset_GetGeoTransform(self, *args, **kwargs)
     685
     686 -    def SetGeoTransform(self, *args):
     687          """SetGeoTransform(self, double argin) -> CPLErr"""
     688          return _gdal.Dataset_SetGeoTransform(self, *args)
     689
     690 -    def BuildOverviews(self, *args, **kwargs):
     691          """
     692          BuildOverviews(self, char resampling = "NEAREST", int overviewlist = 0,
     693              GDALProgressFunc callback = None, void callback_data = None) -> int
     694          """
     695          return _gdal.Dataset_BuildOverviews(self, *args, **kwargs)
     696
     697 -    def GetGCPCount(self, *args):
     698          """GetGCPCount(self) -> int"""
     699          return _gdal.Dataset_GetGCPCount(self, *args)
     700
     701 -    def GetGCPProjection(self, *args):
     702          """GetGCPProjection(self) -> char"""
     703          return _gdal.Dataset_GetGCPProjection(self, *args)
     704
     705 -    def GetGCPs(self, *args):
     706          """GetGCPs(self)"""
     707          return _gdal.Dataset_GetGCPs(self, *args)
     708
     709 -    def SetGCPs(self, *args):
     710          """SetGCPs(self, int nGCPs, char pszGCPProjection) -> CPLErr"""
     711          return _gdal.Dataset_SetGCPs(self, *args)
     712
     713 -    def FlushCache(self, *args):
     714          """FlushCache(self)"""
     715          return _gdal.Dataset_FlushCache(self, *args)
     716
     717 -    def AddBand(self, *args, **kwargs):
     718          """AddBand(self, GDALDataType datatype = GDT_Byte, char options = None) -> CPLErr"""
     719          return _gdal.Dataset_AddBand(self, *args, **kwargs)
     720
     721 -    def CreateMaskBand(self, *args):
     722          """CreateMaskBand(self, int nFlags) -> CPLErr"""
     723          return _gdal.Dataset_CreateMaskBand(self, *args)
     724
     725 -    def GetFileList(self, *args):
     726          """GetFileList(self) -> char"""
     727          return _gdal.Dataset_GetFileList(self, *args)
     728
     729 -    def WriteRaster(self, *args, **kwargs):
     730          """
     731          WriteRaster(self, int xoff, int yoff, int xsize, int ysize, GIntBig buf_len,
     732              int buf_xsize = None, int buf_ysize = None,
     733              GDALDataType buf_type = None, int band_list = 0,
     734              int buf_pixel_space = None, int buf_line_space = None,
     735              int buf_band_space = None) -> CPLErr
     736          """
     737          return _gdal.Dataset_WriteRaster(self, *args, **kwargs)
     738
     739 -    def BeginAsyncReader(self, *args, **kwargs):
     740          """
     741          BeginAsyncReader(self, int xOff, int yOff, int xSize, int ySize, int buf_len,
     742              int buf_xsize, int buf_ysize, GDALDataType bufType = (GDALDataType) 0,
     743              int band_list = 0,
     744              int nPixelSpace = 0, int nLineSpace = 0,
     745              int nBandSpace = 0, char options = None) -> AsyncReader
     746          """
     747          return _gdal.Dataset_BeginAsyncReader(self, *args, **kwargs)
     748
     749 -    def EndAsyncReader(self, *args):
     750          """EndAsyncReader(self, AsyncReader ario)"""
     751          return _gdal.Dataset_EndAsyncReader(self, *args)
     752
     753 -    def ReadRaster1(self, *args, **kwargs):
     754          """
     755          ReadRaster1(self, int xoff, int yoff, int xsize, int ysize, int buf_xsize = None,
     756              int buf_ysize = None, GDALDataType buf_type = None,
     757              int band_list = 0, int buf_pixel_space = None,
     758              int buf_line_space = None,
     759              int buf_band_space = None) -> CPLErr
     760          """
     761          return _gdal.Dataset_ReadRaster1(self, *args, **kwargs)
     762
     763 -    def ReadAsArray(self, xoff=0, yoff=0, xsize=None, ysize=None, buf_obj=None ):
     764          import gdalnumeric
     765          return gdalnumeric.DatasetReadAsArray( self, xoff, yoff, xsize, ysize, buf_obj )
     766 -    def WriteRaster(self, xoff, yoff, xsize, ysize,
     767                      buf_string,
     768                      buf_xsize = None, buf_ysize = None, buf_type = None,
     769                      band_list = None,
     770                      buf_pixel_space = None, buf_line_space = None, buf_band_space = None ):
     771
     772          if buf_xsize is None:
     773              buf_xsize = xsize;
     774          if buf_ysize is None:
     775              buf_ysize = ysize;
     776          if band_list is None:
     777              band_list = range(1,self.RasterCount+1)
     778          if buf_type is None:
     779              buf_type = self.GetRasterBand(1).DataType
     780
     781          return _gdal.Dataset_WriteRaster(self,
     782                   xoff, yoff, xsize, ysize,
     783                  buf_string, buf_xsize, buf_ysize, buf_type, band_list,
     784                  buf_pixel_space, buf_line_space, buf_band_space )
     785
     786 -    def ReadRaster(self, xoff, yoff, xsize, ysize,
     787                     buf_xsize = None, buf_ysize = None, buf_type = None,
     788                     band_list = None,
     789                     buf_pixel_space = None, buf_line_space = None, buf_band_space = None ):
     790
     791          if band_list is None:
     792              band_list = range(1,self.RasterCount+1)
     793          if buf_xsize is None:
     794              buf_xsize = xsize;
     795          if buf_ysize is None:
     796              buf_ysize = ysize;
     797
     798          if buf_type is None:
     799              buf_type = self.GetRasterBand(1).DataType;
     800
     801          return _gdal.Dataset_ReadRaster1(self, xoff, yoff, xsize, ysize,
     802                                              buf_xsize, buf_ysize, buf_type,
     803                                              band_list, buf_pixel_space, buf_line_space, buf_band_space )
     804
     805 -    def GetSubDatasets(self):
     806          sd_list = []
     807
     808          sd = self.GetMetadata('SUBDATASETS')
     809          if sd is None:
     810              return sd_list
     811
     812          i = 1
     813          while sd.has_key('SUBDATASET_'+str(i)+'_NAME'):
     814              sd_list.append( ( sd['SUBDATASET_'+str(i)+'_NAME'],
     815                                sd['SUBDATASET_'+str(i)+'_DESC'] ) )
     816              i = i + 1
     817          return sd_list
     818
     819 -    def BeginAsyncReader(self, xoff, yoff, xsize, ysize, buf_obj = None, buf_xsize = None, buf_ysize = None, buf_type = None, band_list = None, options=[]):
     820          if band_list is None:
     821              band_list = range(1, self.RasterCount + 1)
     822          if buf_xsize is None:
     823              buf_xsize = 0;
     824          if buf_ysize is None:
     825              buf_ysize = 0;
     826          if buf_type is None:
     827              buf_type = GDT_Byte
     828
     829          if buf_xsize <= 0:
     830              buf_xsize = xsize
     831          if buf_ysize <= 0:
     832              buf_ysize = ysize
     833
     834          if buf_obj is None:
     835              from sys import version_info
     836              nRequiredSize = int(buf_xsize * buf_ysize * len(band_list) * (_gdal.GetDataTypeSize(buf_type) / 8))
     837              if version_info >= (3,0,0):
     838                  buf_obj_ar = [ None ]
     839                  exec("buf_obj_ar[0] = b' ' * nRequiredSize")
     840                  buf_obj = buf_obj_ar[0]
     841              else:
     842                  buf_obj = ' ' * nRequiredSize
     843          return _gdal.Dataset_BeginAsyncReader(self, xoff, yoff, xsize, ysize, buf_obj, buf_xsize, buf_ysize, buf_type, band_list,  0, 0, 0, options)
     844
     845  Dataset_swigregister = _gdal.Dataset_swigregister
     846  Dataset_swigregister(Dataset)
     847
     848 -class Band(MajorObject):
     849      """Proxy of C++ GDALRasterBandShadow class"""
     850      __swig_setmethods__ = {}
     851      for _s in [MajorObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
     852      __setattr__ = lambda self, name, value: _swig_setattr(self, Band, name, value)
     853      __swig_getmethods__ = {}
     854      for _s in [MajorObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
     855      __getattr__ = lambda self, name: _swig_getattr(self, Band, name)
     856 -    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
     857      __repr__ = _swig_repr
     858      __swig_getmethods__["XSize"] = _gdal.Band_XSize_get
     859      if _newclass:XSize = _swig_property(_gdal.Band_XSize_get)
     860      __swig_getmethods__["YSize"] = _gdal.Band_YSize_get
     861      if _newclass:YSize = _swig_property(_gdal.Band_YSize_get)
     862      __swig_getmethods__["DataType"] = _gdal.Band_DataType_get
     863      if _newclass:DataType = _swig_property(_gdal.Band_DataType_get)
     864 -    def GetBand(self, *args):
     865          """GetBand(self) -> int"""
     866          return _gdal.Band_GetBand(self, *args)
     867
     868 -    def GetBlockSize(self, *args):
     869          """GetBlockSize(self)"""
     870          return _gdal.Band_GetBlockSize(self, *args)
     871
     872 -    def GetColorInterpretation(self, *args):
     873          """GetColorInterpretation(self) -> GDALColorInterp"""
     874          return _gdal.Band_GetColorInterpretation(self, *args)
     875
     876 -    def GetRasterColorInterpretation(self, *args):
     877          """GetRasterColorInterpretation(self) -> GDALColorInterp"""
     878          return _gdal.Band_GetRasterColorInterpretation(self, *args)
     879
     880 -    def SetColorInterpretation(self, *args):
     881          """SetColorInterpretation(self, GDALColorInterp val) -> CPLErr"""
     882          return _gdal.Band_SetColorInterpretation(self, *args)
     883
     884 -    def SetRasterColorInterpretation(self, *args):
     885          """SetRasterColorInterpretation(self, GDALColorInterp val) -> CPLErr"""
     886          return _gdal.Band_SetRasterColorInterpretation(self, *args)
     887
     888 -    def GetNoDataValue(self, *args):
     889          """GetNoDataValue(self)"""
     890          return _gdal.Band_GetNoDataValue(self, *args)
     891
     892 -    def SetNoDataValue(self, *args):
     893          """SetNoDataValue(self, double d) -> CPLErr"""
     894          return _gdal.Band_SetNoDataValue(self, *args)
     895
     896 -    def GetUnitType(self, *args):
     897          """GetUnitType(self) -> char"""
     898          return _gdal.Band_GetUnitType(self, *args)
     899
     900 -    def SetUnitType(self, *args):
     901          """SetUnitType(self, char val) -> CPLErr"""
     902          return _gdal.Band_SetUnitType(self, *args)
     903
     904 -    def GetRasterCategoryNames(self, *args):
     905          """GetRasterCategoryNames(self) -> char"""
     906          return _gdal.Band_GetRasterCategoryNames(self, *args)
     907
     908 -    def SetRasterCategoryNames(self, *args):
     909          """SetRasterCategoryNames(self, char names) -> CPLErr"""
     910          return _gdal.Band_SetRasterCategoryNames(self, *args)
     911
     912 -    def GetMinimum(self, *args):
     913          """GetMinimum(self)"""
     914          return _gdal.Band_GetMinimum(self, *args)
     915
     916 -    def GetMaximum(self, *args):
     917          """GetMaximum(self)"""
     918          return _gdal.Band_GetMaximum(self, *args)
     919
     920 -    def GetOffset(self, *args):
     921          """GetOffset(self)"""
     922          return _gdal.Band_GetOffset(self, *args)
     923
     924 -    def GetScale(self, *args):
     925          """GetScale(self)"""
     926          return _gdal.Band_GetScale(self, *args)
     927
     928 -    def SetOffset(self, *args):
     929          """SetOffset(self, double val) -> CPLErr"""
     930          return _gdal.Band_SetOffset(self, *args)
     931
     932 -    def SetScale(self, *args):
     933          """SetScale(self, double val) -> CPLErr"""
     934          return _gdal.Band_SetScale(self, *args)
     935
     936 -    def GetStatistics(self, *args):
     937          """GetStatistics(self, int approx_ok, int force) -> CPLErr"""
     938          return _gdal.Band_GetStatistics(self, *args)
     939
     940 -    def ComputeStatistics(self, *args):
     941          """ComputeStatistics(self, bool approx_ok, GDALProgressFunc callback = None, void callback_data = None) -> CPLErr"""
     942          return _gdal.Band_ComputeStatistics(self, *args)
     943
     944 -    def SetStatistics(self, *args):
     945          """SetStatistics(self, double min, double max, double mean, double stddev) -> CPLErr"""
     946          return _gdal.Band_SetStatistics(self, *args)
     947
     948 -    def GetOverviewCount(self, *args):
     949          """GetOverviewCount(self) -> int"""
     950          return _gdal.Band_GetOverviewCount(self, *args)
     951
     952 -    def GetOverview(self, *args):
     953          """GetOverview(self, int i) -> Band"""
     954          return _gdal.Band_GetOverview(self, *args)
     955
     956 -    def Checksum(self, *args, **kwargs):
     957          """Checksum(self, int xoff = 0, int yoff = 0, int xsize = None, int ysize = None) -> int"""
     958          return _gdal.Band_Checksum(self, *args, **kwargs)
     959
     960 -    def ComputeRasterMinMax(self, *args):
     961          """ComputeRasterMinMax(self, int approx_ok = 0)"""
     962          return _gdal.Band_ComputeRasterMinMax(self, *args)
     963
     964 -    def ComputeBandStats(self, *args):
     965          """ComputeBandStats(self, int samplestep = 1)"""
     966          return _gdal.Band_ComputeBandStats(self, *args)
     967
     968 -    def Fill(self, *args):
     969          """Fill(self, double real_fill, double imag_fill = 0.0) -> CPLErr"""
     970          return _gdal.Band_Fill(self, *args)
     971
     972 -    def WriteRaster(self, *args, **kwargs):
     973          """
     974          WriteRaster(self, int xoff, int yoff, int xsize, int ysize, GIntBig buf_len,
     975              int buf_xsize = None, int buf_ysize = None,
     976              int buf_type = None, int buf_pixel_space = None,
     977              int buf_line_space = None) -> CPLErr
     978          """
     979          return _gdal.Band_WriteRaster(self, *args, **kwargs)
     980
     981 -    def FlushCache(self, *args):
     982          """FlushCache(self)"""
     983          return _gdal.Band_FlushCache(self, *args)
     984
     985 -    def GetRasterColorTable(self, *args):
     986          """GetRasterColorTable(self) -> ColorTable"""
     987          return _gdal.Band_GetRasterColorTable(self, *args)
     988
     989 -    def GetColorTable(self, *args):
     990          """GetColorTable(self) -> ColorTable"""
     991          return _gdal.Band_GetColorTable(self, *args)
     992
     993 -    def SetRasterColorTable(self, *args):
     994          """SetRasterColorTable(self, ColorTable arg) -> int"""
     995          return _gdal.Band_SetRasterColorTable(self, *args)
     996
     997 -    def SetColorTable(self, *args):
     998          """SetColorTable(self, ColorTable arg) -> int"""
     999          return _gdal.Band_SetColorTable(self, *args)
    1000
    1001 -    def GetDefaultRAT(self, *args):
    1002          """GetDefaultRAT(self) -> RasterAttributeTable"""
    1003          return _gdal.Band_GetDefaultRAT(self, *args)
    1004
    1005 -    def SetDefaultRAT(self, *args):
    1006          """SetDefaultRAT(self, RasterAttributeTable table) -> int"""
    1007          return _gdal.Band_SetDefaultRAT(self, *args)
    1008
    1009 -    def GetMaskBand(self, *args):
    1010          """GetMaskBand(self) -> Band"""
    1011          return _gdal.Band_GetMaskBand(self, *args)
    1012
    1013 -    def GetMaskFlags(self, *args):
    1014          """GetMaskFlags(self) -> int"""
    1015          return _gdal.Band_GetMaskFlags(self, *args)
    1016
    1017 -    def CreateMaskBand(self, *args):
    1018          """CreateMaskBand(self, int nFlags) -> CPLErr"""
    1019          return _gdal.Band_CreateMaskBand(self, *args)
    1020
    1021 -    def GetHistogram(self, *args, **kwargs):
    1022          """
    1023          GetHistogram(self, double min = -0.5, double max = 255.5, int buckets = 256,
    1024              int include_out_of_range = 0, int approx_ok = 1,
    1025              GDALProgressFunc callback = None,
    1026              void callback_data = None) -> CPLErr
    1027          """
    1028          return _gdal.Band_GetHistogram(self, *args, **kwargs)
    1029
    1030 -    def GetDefaultHistogram(self, *args, **kwargs):
    1031          """
    1032          GetDefaultHistogram(self, double min_ret = None, double max_ret = None, int buckets_ret = None,
    1033              int ppanHistogram = None,
    1034              int force = 1, GDALProgressFunc callback = None,
    1035              void callback_data = None) -> CPLErr
    1036          """
    1037          return _gdal.Band_GetDefaultHistogram(self, *args, **kwargs)
    1038
    1039 -    def SetDefaultHistogram(self, *args):
    1040          """SetDefaultHistogram(self, double min, double max, int buckets_in) -> CPLErr"""
    1041          return _gdal.Band_SetDefaultHistogram(self, *args)
    1042
    1043 -    def HasArbitraryOverviews(self, *args):
    1044          """HasArbitraryOverviews(self) -> bool"""
    1045          return _gdal.Band_HasArbitraryOverviews(self, *args)
    1046
    1047 -    def GetCategoryNames(self, *args):
    1048          """GetCategoryNames(self) -> char"""
    1049          return _gdal.Band_GetCategoryNames(self, *args)
    1050
    1051 -    def SetCategoryNames(self, *args):
    1052          """SetCategoryNames(self, char papszCategoryNames) -> CPLErr"""
    1053          return _gdal.Band_SetCategoryNames(self, *args)
    1054
    1055 -    def ReadRaster1(self, *args, **kwargs):
    1056          """
    1057          ReadRaster1(self, int xoff, int yoff, int xsize, int ysize, int buf_xsize = None,
    1058              int buf_ysize = None, int buf_type = None,
    1059              int buf_pixel_space = None, int buf_line_space = None) -> CPLErr
    1060          """
    1061          return _gdal.Band_ReadRaster1(self, *args, **kwargs)
    1062
    1063 -    def ReadRaster(self, xoff, yoff, xsize, ysize,
    1064                       buf_xsize = None, buf_ysize = None, buf_type = None,
    1065                       buf_pixel_space = None, buf_line_space = None ):
    1066
    1067          return _gdal.Band_ReadRaster1(self, xoff, yoff, xsize, ysize,
    1068                                        buf_xsize, buf_ysize, buf_type,
    1069                                        buf_pixel_space, buf_line_space)
    1070
    1071 -    def ReadAsArray(self, xoff=0, yoff=0, win_xsize=None, win_ysize=None,
    1072                      buf_xsize=None, buf_ysize=None, buf_obj=None):
    1073          import gdalnumeric
    1074
    1075          return gdalnumeric.BandReadAsArray( self, xoff, yoff,
    1076                                              win_xsize, win_ysize,
    1077                                              buf_xsize, buf_ysize, buf_obj )
    1078
    1079 -    def WriteArray(self, array, xoff=0, yoff=0):
    1080          import gdalnumeric
    1081
    1082          return gdalnumeric.BandWriteArray( self, array, xoff, yoff )
    1083
    1084 -    def __get_array_interface__(self):
    1085          shape = [1, self.XSize, self.YSize]
    1086
    1087
    1088  Band_swigregister = _gdal.Band_swigregister
    1089  Band_swigregister(Band)
    1090
    1091 -class ColorTable(_object):
    1092      """Proxy of C++ GDALColorTableShadow class"""
    1093      __swig_setmethods__ = {}
    1094      __setattr__ = lambda self, name, value: _swig_setattr(self, ColorTable, name, value)
    1095      __swig_getmethods__ = {}
    1096      __getattr__ = lambda self, name: _swig_getattr(self, ColorTable, name)
    1097      __repr__ = _swig_repr
    1098 -    def __init__(self, *args, **kwargs):
    1099          """__init__(self, GDALPaletteInterp palette = GPI_RGB) -> ColorTable"""
    1100          this = _gdal.new_ColorTable(*args, **kwargs)
    1101          try: self.this.append(this)
    1102          except: self.this = this
    1103      __swig_destroy__ = _gdal.delete_ColorTable
    1104      __del__ = lambda self : None;
    1105 -    def Clone(self, *args):
    1106          """Clone(self) -> ColorTable"""
    1107          return _gdal.ColorTable_Clone(self, *args)
    1108
    1109 -    def GetPaletteInterpretation(self, *args):
    1110          """GetPaletteInterpretation(self) -> GDALPaletteInterp"""
    1111          return _gdal.ColorTable_GetPaletteInterpretation(self, *args)
    1112
    1113 -    def GetCount(self, *args):
    1114          """GetCount(self) -> int"""
    1115          return _gdal.ColorTable_GetCount(self, *args)
    1116
    1117 -    def GetColorEntry(self, *args):
    1118          """GetColorEntry(self, int entry) -> ColorEntry"""
    1119          return _gdal.ColorTable_GetColorEntry(self, *args)
    1120
    1121 -    def GetColorEntryAsRGB(self, *args):
    1122          """GetColorEntryAsRGB(self, int entry, ColorEntry centry) -> int"""
    1123          return _gdal.ColorTable_GetColorEntryAsRGB(self, *args)
    1124
    1125 -    def SetColorEntry(self, *args):
    1126          """SetColorEntry(self, int entry, ColorEntry centry)"""
    1127          return _gdal.ColorTable_SetColorEntry(self, *args)
    1128
    1129 -    def CreateColorRamp(self, *args):
    1130          """
    1131          CreateColorRamp(self, int nStartIndex, ColorEntry startcolor, int nEndIndex,
    1132              ColorEntry endcolor)
    1133          """
    1134          return _gdal.ColorTable_CreateColorRamp(self, *args)
    1135
    1136  ColorTable_swigregister = _gdal.ColorTable_swigregister
    1137  ColorTable_swigregister(ColorTable)
    1138
    1139 -class RasterAttributeTable(_object):
    1140      """Proxy of C++ GDALRasterAttributeTableShadow class"""
    1141      __swig_setmethods__ = {}
    1142      __setattr__ = lambda self, name, value: _swig_setattr(self, RasterAttributeTable, name, value)
    1143      __swig_getmethods__ = {}
    1144      __getattr__ = lambda self, name: _swig_getattr(self, RasterAttributeTable, name)
    1145      __repr__ = _swig_repr
    1146 -    def __init__(self, *args):
    1147          """__init__(self) -> RasterAttributeTable"""
    1148          this = _gdal.new_RasterAttributeTable(*args)
    1149          try: self.this.append(this)
    1150          except: self.this = this
    1151      __swig_destroy__ = _gdal.delete_RasterAttributeTable
    1152      __del__ = lambda self : None;
    1153 -    def Clone(self, *args):
    1154          """Clone(self) -> RasterAttributeTable"""
    1155          return _gdal.RasterAttributeTable_Clone(self, *args)
    1156
    1157 -    def GetColumnCount(self, *args):
    1158          """GetColumnCount(self) -> int"""
    1159          return _gdal.RasterAttributeTable_GetColumnCount(self, *args)
    1160
    1161 -    def GetNameOfCol(self, *args):
    1162          """GetNameOfCol(self, int iCol) -> char"""
    1163          return _gdal.RasterAttributeTable_GetNameOfCol(self, *args)
    1164
    1165 -    def GetUsageOfCol(self, *args):
    1166          """GetUsageOfCol(self, int iCol) -> GDALRATFieldUsage"""
    1167          return _gdal.RasterAttributeTable_GetUsageOfCol(self, *args)
    1168
    1169 -    def GetTypeOfCol(self, *args):
    1170          """GetTypeOfCol(self, int iCol) -> GDALRATFieldType"""
    1171          return _gdal.RasterAttributeTable_GetTypeOfCol(self, *args)
    1172
    1173 -    def GetColOfUsage(self, *args):
    1174          """GetColOfUsage(self, GDALRATFieldUsage eUsage) -> int"""
    1175          return _gdal.RasterAttributeTable_GetColOfUsage(self, *args)
    1176
    1177 -    def GetRowCount(self, *args):
    1178          """GetRowCount(self) -> int"""
    1179          return _gdal.RasterAttributeTable_GetRowCount(self, *args)
    1180
    1181 -    def GetValueAsString(self, *args):
    1182          """GetValueAsString(self, int iRow, int iCol) -> char"""
    1183          return _gdal.RasterAttributeTable_GetValueAsString(self, *args)
    1184
    1185 -    def GetValueAsInt(self, *args):
    1186          """GetValueAsInt(self, int iRow, int iCol) -> int"""
    1187          return _gdal.RasterAttributeTable_GetValueAsInt(self, *args)
    1188
    1189 -    def GetValueAsDouble(self, *args):
    1190          """GetValueAsDouble(self, int iRow, int iCol) -> double"""
    1191          return _gdal.RasterAttributeTable_GetValueAsDouble(self, *args)
    1192
    1193 -    def SetValueAsString(self, *args):
    1194          """SetValueAsString(self, int iRow, int iCol, char pszValue)"""
    1195          return _gdal.RasterAttributeTable_SetValueAsString(self, *args)
    1196
    1197 -    def SetValueAsInt(self, *args):
    1198          """SetValueAsInt(self, int iRow, int iCol, int nValue)"""
    1199          return _gdal.RasterAttributeTable_SetValueAsInt(self, *args)
    1200
    1201 -    def SetValueAsDouble(self, *args):
    1202          """SetValueAsDouble(self, int iRow, int iCol, double dfValue)"""
    1203          return _gdal.RasterAttributeTable_SetValueAsDouble(self, *args)
    1204
    1205 -    def SetRowCount(self, *args):
    1206          """SetRowCount(self, int nCount)"""
    1207          return _gdal.RasterAttributeTable_SetRowCount(self, *args)
    1208
    1209 -    def CreateColumn(self, *args):
    1210          """CreateColumn(self, char pszName, GDALRATFieldType eType, GDALRATFieldUsage eUsage) -> int"""
    1211          return _gdal.RasterAttributeTable_CreateColumn(self, *args)
    1212
    1213 -    def GetLinearBinning(self, *args):
    1214          """GetLinearBinning(self) -> bool"""
    1215          return _gdal.RasterAttributeTable_GetLinearBinning(self, *args)
    1216
    1217 -    def SetLinearBinning(self, *args):
    1218          """SetLinearBinning(self, double dfRow0Min, double dfBinSize) -> int"""
    1219          return _gdal.RasterAttributeTable_SetLinearBinning(self, *args)
    1220
    1221 -    def GetRowOfValue(self, *args):
    1222          """GetRowOfValue(self, double dfValue) -> int"""
    1223          return _gdal.RasterAttributeTable_GetRowOfValue(self, *args)
    1224
    1225  RasterAttributeTable_swigregister = _gdal.RasterAttributeTable_swigregister
    1226  RasterAttributeTable_swigregister(RasterAttributeTable)
    1227
    1228
    1229 -def TermProgress_nocb(*args, **kwargs):
    1230    """TermProgress_nocb(double dfProgress, char pszMessage = None, void pData = None) -> int"""
    1231    return _gdal.TermProgress_nocb(*args, **kwargs)
    1232  TermProgress = _gdal.TermProgress
    1233
    1234 -def ComputeMedianCutPCT(*args, **kwargs):
    1235    """
    1236      ComputeMedianCutPCT(Band red, Band green, Band blue, int num_colors, ColorTable colors,
    1237          GDALProgressFunc callback = None,
    1238          void callback_data = None) -> int
    1239      """
    1240    return _gdal.ComputeMedianCutPCT(*args, **kwargs)
    1241  ComputeMedianCutPCT = _gdal.ComputeMedianCutPCT
    1242
    1243 -def DitherRGB2PCT(*args, **kwargs):
    1244    """
    1245      DitherRGB2PCT(Band red, Band green, Band blue, Band target, ColorTable colors,
    1246          GDALProgressFunc callback = None,
    1247          void callback_data = None) -> int
    1248      """
    1249    return _gdal.DitherRGB2PCT(*args, **kwargs)
    1250  DitherRGB2PCT = _gdal.DitherRGB2PCT
    1251
    1252 -def ReprojectImage(*args):
    1253    """
    1254      ReprojectImage(Dataset src_ds, Dataset dst_ds, char src_wkt = None,
    1255          char dst_wkt = None, GDALResampleAlg eResampleAlg = GRA_NearestNeighbour,
    1256          double WarpMemoryLimit = 0.0,
    1257          double maxerror = 0.0, GDALProgressFunc callback = None,
    1258          void callback_data = None) -> CPLErr
    1259      """
    1260    return _gdal.ReprojectImage(*args)
    1261  ReprojectImage = _gdal.ReprojectImage
    1262
    1263 -def ComputeProximity(*args, **kwargs):
    1264    """
    1265      ComputeProximity(Band srcBand, Band proximityBand, char options = None,
    1266          GDALProgressFunc callback = None, void callback_data = None) -> int
    1267      """
    1268    return _gdal.ComputeProximity(*args, **kwargs)
    1269  ComputeProximity = _gdal.ComputeProximity
    1270
    1271 -def RasterizeLayer(*args, **kwargs):
    1272    """
    1273      RasterizeLayer(Dataset dataset, int bands, OGRLayerShadow layer, void pfnTransformer = None,
    1274          void pTransformArg = None,
    1275          int burn_values = 0, char options = None,
    1276          GDALProgressFunc callback = None, void callback_data = None) -> int
    1277      """
    1278    return _gdal.RasterizeLayer(*args, **kwargs)
    1279  RasterizeLayer = _gdal.RasterizeLayer
    1280
    1281 -def Polygonize(*args, **kwargs):
    1282    """
    1283      Polygonize(Band srcBand, Band maskBand, OGRLayerShadow outLayer,
    1284          int iPixValField, char options = None, GDALProgressFunc callback = None,
    1285          void callback_data = None) -> int
    1286      """
    1287    return _gdal.Polygonize(*args, **kwargs)
    1288  Polygonize = _gdal.Polygonize
    1289
    1290 -def FillNodata(*args, **kwargs):
    1291    """
    1292      FillNodata(Band targetBand, Band maskBand, double maxSearchDist,
    1293          int smoothingIterations, char options = None,
    1294          GDALProgressFunc callback = None, void callback_data = None) -> int
    1295      """
    1296    return _gdal.FillNodata(*args, **kwargs)
    1297  FillNodata = _gdal.FillNodata
    1298
    1299 -def SieveFilter(*args, **kwargs):
    1300    """
    1301      SieveFilter(Band srcBand, Band maskBand, Band dstBand, int threshold,
    1302          int connectedness = 4, char options = None,
    1303          GDALProgressFunc callback = None, void callback_data = None) -> int
    1304      """
    1305    return _gdal.SieveFilter(*args, **kwargs)
    1306  SieveFilter = _gdal.SieveFilter
    1307
    1308 -def RegenerateOverviews(*args, **kwargs):
    1309    """
    1310      RegenerateOverviews(Band srcBand, int overviewBandCount, char resampling = "average",
    1311          GDALProgressFunc callback = None,
    1312          void callback_data = None) -> int
    1313      """
    1314    return _gdal.RegenerateOverviews(*args, **kwargs)
    1315  RegenerateOverviews = _gdal.RegenerateOverviews
    1316
    1317 -def RegenerateOverview(*args, **kwargs):
    1318    """
    1319      RegenerateOverview(Band srcBand, Band overviewBand, char resampling = "average",
    1320          GDALProgressFunc callback = None,
    1321          void callback_data = None) -> int
    1322      """
    1323    return _gdal.RegenerateOverview(*args, **kwargs)
    1324  RegenerateOverview = _gdal.RegenerateOverview
    1325
    1326 -def ContourGenerate(*args, **kwargs):
    1327    """
    1328      ContourGenerate(Band srcBand, double contourInterval, double contourBase,
    1329          int fixedLevelCount, int useNoData, double noDataValue,
    1330          OGRLayerShadow dstLayer, int idField,
    1331          int elevField, GDALProgressFunc callback = None,
    1332          void callback_data = None) -> int
    1333      """
    1334    return _gdal.ContourGenerate(*args, **kwargs)
    1335  ContourGenerate = _gdal.ContourGenerate
    1336
    1337 -def AutoCreateWarpedVRT(*args):
    1338    """
    1339      AutoCreateWarpedVRT(Dataset src_ds, char src_wkt = None, char dst_wkt = None,
    1340          GDALResampleAlg eResampleAlg = GRA_NearestNeighbour,
    1341          double maxerror = 0.0) -> Dataset
    1342      """
    1343    return _gdal.AutoCreateWarpedVRT(*args)
    1344  AutoCreateWarpedVRT = _gdal.AutoCreateWarpedVRT
    1345 -class Transformer(_object):
    1346      """Proxy of C++ GDALTransformerInfoShadow class"""
    1347      __swig_setmethods__ = {}
    1348      __setattr__ = lambda self, name, value: _swig_setattr(self, Transformer, name, value)
    1349      __swig_getmethods__ = {}
    1350      __getattr__ = lambda self, name: _swig_getattr(self, Transformer, name)
    1351      __repr__ = _swig_repr
    1352 -    def __init__(self, *args):
    1353          """__init__(self, Dataset src, Dataset dst, char options) -> Transformer"""
    1354          this = _gdal.new_Transformer(*args)
    1355          try: self.this.append(this)
    1356          except: self.this = this
    1357      __swig_destroy__ = _gdal.delete_Transformer
    1358      __del__ = lambda self : None;
    1359 -    def TransformPoint(self, *args):
    1360          """
    1361          TransformPoint(self, int bDstToSrc, double inout) -> int
    1362          TransformPoint(self, int bDstToSrc, double x, double y, double z = 0.0) -> int
    1363          """
    1364          return _gdal.Transformer_TransformPoint(self, *args)
    1365
    1366 -    def TransformPoints(self, *args):
    1367          """TransformPoints(self, int bDstToSrc, int nCount) -> int"""
    1368          return _gdal.Transformer_TransformPoints(self, *args)
    1369
    1370  Transformer_swigregister = _gdal.Transformer_swigregister
    1371  Transformer_swigregister(Transformer)
    1372
    1373
    1374 -def ApplyGeoTransform(*args):
    1375    """ApplyGeoTransform(double padfGeoTransform, double dfPixel, double dfLine)"""
    1376    return _gdal.ApplyGeoTransform(*args)
    1377  ApplyGeoTransform = _gdal.ApplyGeoTransform
    1378
    1379 -def InvGeoTransform(*args):
    1380    """InvGeoTransform(double gt_in) -> int"""
    1381    return _gdal.InvGeoTransform(*args)
    1382  InvGeoTransform = _gdal.InvGeoTransform
    1383
    1384 -def VersionInfo(*args):
    1385    """VersionInfo(char request = "VERSION_NUM") -> char"""
    1386    return _gdal.VersionInfo(*args)
    1387  VersionInfo = _gdal.VersionInfo
    1388
    1389 -def AllRegister(*args):
    1390    """AllRegister()"""
    1391    return _gdal.AllRegister(*args)
    1392  AllRegister = _gdal.AllRegister
    1393
    1394 -def GDALDestroyDriverManager(*args):
    1395    """GDALDestroyDriverManager()"""
    1396    return _gdal.GDALDestroyDriverManager(*args)
    1397  GDALDestroyDriverManager = _gdal.GDALDestroyDriverManager
    1398
    1399 -def GetCacheMax(*args):
    1400    """GetCacheMax() -> GIntBig"""
    1401    return _gdal.GetCacheMax(*args)
    1402  GetCacheMax = _gdal.GetCacheMax
    1403
    1404 -def GetCacheUsed(*args):
    1405    """GetCacheUsed() -> GIntBig"""
    1406    return _gdal.GetCacheUsed(*args)
    1407  GetCacheUsed = _gdal.GetCacheUsed
    1408
    1409 -def SetCacheMax(*args):
    1410    """SetCacheMax(GIntBig nBytes)"""
    1411    return _gdal.SetCacheMax(*args)
    1412  SetCacheMax = _gdal.SetCacheMax
    1413
    1414 -def GetDataTypeSize(*args):
    1415    """GetDataTypeSize(GDALDataType eDataType) -> int"""
    1416    return _gdal.GetDataTypeSize(*args)
    1417  GetDataTypeSize = _gdal.GetDataTypeSize
    1418
    1419 -def DataTypeIsComplex(*args):
    1420    """DataTypeIsComplex(GDALDataType eDataType) -> int"""
    1421    return _gdal.DataTypeIsComplex(*args)
    1422  DataTypeIsComplex = _gdal.DataTypeIsComplex
    1423
    1424 -def GetDataTypeName(*args):
    1425    """GetDataTypeName(GDALDataType eDataType) -> char"""
    1426    return _gdal.GetDataTypeName(*args)
    1427  GetDataTypeName = _gdal.GetDataTypeName
    1428
    1429 -def GetDataTypeByName(*args):
    1430    """GetDataTypeByName(char pszDataTypeName) -> GDALDataType"""
    1431    return _gdal.GetDataTypeByName(*args)
    1432  GetDataTypeByName = _gdal.GetDataTypeByName
    1433
    1434 -def GetColorInterpretationName(*args):
    1435    """GetColorInterpretationName(GDALColorInterp eColorInterp) -> char"""
    1436    return _gdal.GetColorInterpretationName(*args)
    1437  GetColorInterpretationName = _gdal.GetColorInterpretationName
    1438
    1439 -def GetPaletteInterpretationName(*args):
    1440    """GetPaletteInterpretationName(GDALPaletteInterp ePaletteInterp) -> char"""
    1441    return _gdal.GetPaletteInterpretationName(*args)
    1442  GetPaletteInterpretationName = _gdal.GetPaletteInterpretationName
    1443
    1444 -def DecToDMS(*args):
    1445    """DecToDMS(double arg0, char arg1, int arg2 = 2) -> char"""
    1446    return _gdal.DecToDMS(*args)
    1447  DecToDMS = _gdal.DecToDMS
    1448
    1449 -def PackedDMSToDec(*args):
    1450    """PackedDMSToDec(double dfPacked) -> double"""
    1451    return _gdal.PackedDMSToDec(*args)
    1452  PackedDMSToDec = _gdal.PackedDMSToDec
    1453
    1454 -def DecToPackedDMS(*args):
    1455    """DecToPackedDMS(double dfDec) -> double"""
    1456    return _gdal.DecToPackedDMS(*args)
    1457  DecToPackedDMS = _gdal.DecToPackedDMS
    1458
    1459 -def ParseXMLString(*args):
    1460    """ParseXMLString(char pszXMLString) -> CPLXMLNode"""
    1461    return _gdal.ParseXMLString(*args)
    1462  ParseXMLString = _gdal.ParseXMLString
    1463
    1464 -def SerializeXMLTree(*args):
    1465    """SerializeXMLTree(CPLXMLNode xmlnode) -> retStringAndCPLFree"""
    1466    return _gdal.SerializeXMLTree(*args)
    1467  SerializeXMLTree = _gdal.SerializeXMLTree
    1468
    1469 -def GetDriverCount(*args):
    1470    """GetDriverCount() -> int"""
    1471    return _gdal.GetDriverCount(*args)
    1472  GetDriverCount = _gdal.GetDriverCount
    1473
    1474 -def GetDriverByName(*args):
    1475    """GetDriverByName(char name) -> Driver"""
    1476    return _gdal.GetDriverByName(*args)
    1477  GetDriverByName = _gdal.GetDriverByName
    1478
    1479 -def GetDriver(*args):
    1480    """GetDriver(int i) -> Driver"""
    1481    return _gdal.GetDriver(*args)
    1482  GetDriver = _gdal.GetDriver
    1483
    1484 -def Open(*args):
    1485    """Open(char utf8_path, GDALAccess eAccess = GA_ReadOnly) -> Dataset"""
    1486    return _gdal.Open(*args)
    1487  Open = _gdal.Open
    1488
    1489 -def OpenShared(*args):
    1490    """OpenShared(char utf8_path, GDALAccess eAccess = GA_ReadOnly) -> Dataset"""
    1491    return _gdal.OpenShared(*args)
    1492  OpenShared = _gdal.OpenShared
    1493
    1494 -def IdentifyDriver(*args):
    1495    """IdentifyDriver(char utf8_path, char papszSiblings = None) -> Driver"""
    1496    return _gdal.IdentifyDriver(*args)
    1497  IdentifyDriver = _gdal.IdentifyDriver
    1498
    1499 -def GeneralCmdLineProcessor(*args):
    1500    """GeneralCmdLineProcessor(char papszArgv, int nOptions = 0) -> char"""
    1501    return _gdal.GeneralCmdLineProcessor(*args)
    1502  GeneralCmdLineProcessor = _gdal.GeneralCmdLineProcessor
    1503  __version__ = _gdal.VersionInfo("RELEASE_NAME")
    1504