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

# Source Code for Module osgeo.gdalconst

      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('_gdalconst', [dirname(__file__)])
     16          except ImportError:
     17              import _gdalconst
     18              return _gdalconst
     19          if fp is not None:
     20              try:
     21                  _mod = imp.load_module('_gdalconst', fp, pathname, description)
     22              finally:
     23                  fp.close()
     24              return _mod
     25      _gdalconst = swig_import_helper()
     26      del swig_import_helper
     27  else:
     28      import _gdalconst
     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  GDT_Unknown = _gdalconst.GDT_Unknown
     70  GDT_Byte = _gdalconst.GDT_Byte
     71  GDT_UInt16 = _gdalconst.GDT_UInt16
     72  GDT_Int16 = _gdalconst.GDT_Int16
     73  GDT_UInt32 = _gdalconst.GDT_UInt32
     74  GDT_Int32 = _gdalconst.GDT_Int32
     75  GDT_Float32 = _gdalconst.GDT_Float32
     76  GDT_Float64 = _gdalconst.GDT_Float64
     77  GDT_CInt16 = _gdalconst.GDT_CInt16
     78  GDT_CInt32 = _gdalconst.GDT_CInt32
     79  GDT_CFloat32 = _gdalconst.GDT_CFloat32
     80  GDT_CFloat64 = _gdalconst.GDT_CFloat64
     81  GDT_TypeCount = _gdalconst.GDT_TypeCount
     82  GA_ReadOnly = _gdalconst.GA_ReadOnly
     83  GA_Update = _gdalconst.GA_Update
     84  GF_Read = _gdalconst.GF_Read
     85  GF_Write = _gdalconst.GF_Write
     86  GRIORA_NearestNeighbour = _gdalconst.GRIORA_NearestNeighbour
     87  GRIORA_Bilinear = _gdalconst.GRIORA_Bilinear
     88  GRIORA_Cubic = _gdalconst.GRIORA_Cubic
     89  GRIORA_CubicSpline = _gdalconst.GRIORA_CubicSpline
     90  GRIORA_Lanczos = _gdalconst.GRIORA_Lanczos
     91  GRIORA_Average = _gdalconst.GRIORA_Average
     92  GRIORA_Mode = _gdalconst.GRIORA_Mode
     93  GRIORA_Gauss = _gdalconst.GRIORA_Gauss
     94  GCI_Undefined = _gdalconst.GCI_Undefined
     95  GCI_GrayIndex = _gdalconst.GCI_GrayIndex
     96  GCI_PaletteIndex = _gdalconst.GCI_PaletteIndex
     97  GCI_RedBand = _gdalconst.GCI_RedBand
     98  GCI_GreenBand = _gdalconst.GCI_GreenBand
     99  GCI_BlueBand = _gdalconst.GCI_BlueBand
    100  GCI_AlphaBand = _gdalconst.GCI_AlphaBand
    101  GCI_HueBand = _gdalconst.GCI_HueBand
    102  GCI_SaturationBand = _gdalconst.GCI_SaturationBand
    103  GCI_LightnessBand = _gdalconst.GCI_LightnessBand
    104  GCI_CyanBand = _gdalconst.GCI_CyanBand
    105  GCI_MagentaBand = _gdalconst.GCI_MagentaBand
    106  GCI_YellowBand = _gdalconst.GCI_YellowBand
    107  GCI_BlackBand = _gdalconst.GCI_BlackBand
    108  GCI_YCbCr_YBand = _gdalconst.GCI_YCbCr_YBand
    109  GCI_YCbCr_CrBand = _gdalconst.GCI_YCbCr_CrBand
    110  GCI_YCbCr_CbBand = _gdalconst.GCI_YCbCr_CbBand
    111  GRA_NearestNeighbour = _gdalconst.GRA_NearestNeighbour
    112  GRA_Bilinear = _gdalconst.GRA_Bilinear
    113  GRA_Cubic = _gdalconst.GRA_Cubic
    114  GRA_CubicSpline = _gdalconst.GRA_CubicSpline
    115  GRA_Lanczos = _gdalconst.GRA_Lanczos
    116  GRA_Average = _gdalconst.GRA_Average
    117  GRA_Mode = _gdalconst.GRA_Mode
    118  GPI_Gray = _gdalconst.GPI_Gray
    119  GPI_RGB = _gdalconst.GPI_RGB
    120  GPI_CMYK = _gdalconst.GPI_CMYK
    121  GPI_HLS = _gdalconst.GPI_HLS
    122  CXT_Element = _gdalconst.CXT_Element
    123  CXT_Text = _gdalconst.CXT_Text
    124  CXT_Attribute = _gdalconst.CXT_Attribute
    125  CXT_Comment = _gdalconst.CXT_Comment
    126  CXT_Literal = _gdalconst.CXT_Literal
    127  CE_None = _gdalconst.CE_None
    128  CE_Debug = _gdalconst.CE_Debug
    129  CE_Warning = _gdalconst.CE_Warning
    130  CE_Failure = _gdalconst.CE_Failure
    131  CE_Fatal = _gdalconst.CE_Fatal
    132  CPLE_None = _gdalconst.CPLE_None
    133  CPLE_AppDefined = _gdalconst.CPLE_AppDefined
    134  CPLE_OutOfMemory = _gdalconst.CPLE_OutOfMemory
    135  CPLE_FileIO = _gdalconst.CPLE_FileIO
    136  CPLE_OpenFailed = _gdalconst.CPLE_OpenFailed
    137  CPLE_IllegalArg = _gdalconst.CPLE_IllegalArg
    138  CPLE_NotSupported = _gdalconst.CPLE_NotSupported
    139  CPLE_AssertionFailed = _gdalconst.CPLE_AssertionFailed
    140  CPLE_NoWriteAccess = _gdalconst.CPLE_NoWriteAccess
    141  CPLE_UserInterrupt = _gdalconst.CPLE_UserInterrupt
    142  OF_ALL = _gdalconst.OF_ALL
    143  OF_RASTER = _gdalconst.OF_RASTER
    144  OF_VECTOR = _gdalconst.OF_VECTOR
    145  OF_GNM = _gdalconst.OF_GNM
    146  OF_READONLY = _gdalconst.OF_READONLY
    147  OF_UPDATE = _gdalconst.OF_UPDATE
    148  OF_SHARED = _gdalconst.OF_SHARED
    149  OF_VERBOSE_ERROR = _gdalconst.OF_VERBOSE_ERROR
    150  DMD_LONGNAME = _gdalconst.DMD_LONGNAME
    151  DMD_HELPTOPIC = _gdalconst.DMD_HELPTOPIC
    152  DMD_MIMETYPE = _gdalconst.DMD_MIMETYPE
    153  DMD_EXTENSION = _gdalconst.DMD_EXTENSION
    154  DMD_EXTENSIONS = _gdalconst.DMD_EXTENSIONS
    155  DMD_CONNECTION_PREFIX = _gdalconst.DMD_CONNECTION_PREFIX
    156  DMD_CREATIONOPTIONLIST = _gdalconst.DMD_CREATIONOPTIONLIST
    157  DMD_CREATIONDATATYPES = _gdalconst.DMD_CREATIONDATATYPES
    158  DMD_CREATIONFIELDDATATYPES = _gdalconst.DMD_CREATIONFIELDDATATYPES
    159  DMD_SUBDATASETS = _gdalconst.DMD_SUBDATASETS
    160  DCAP_OPEN = _gdalconst.DCAP_OPEN
    161  DCAP_CREATE = _gdalconst.DCAP_CREATE
    162  DCAP_CREATECOPY = _gdalconst.DCAP_CREATECOPY
    163  DCAP_VIRTUALIO = _gdalconst.DCAP_VIRTUALIO
    164  DCAP_RASTER = _gdalconst.DCAP_RASTER
    165  DCAP_VECTOR = _gdalconst.DCAP_VECTOR
    166  DCAP_NOTNULL_FIELDS = _gdalconst.DCAP_NOTNULL_FIELDS
    167  DCAP_DEFAULT_FIELDS = _gdalconst.DCAP_DEFAULT_FIELDS
    168  DCAP_NOTNULL_GEOMFIELDS = _gdalconst.DCAP_NOTNULL_GEOMFIELDS
    169  CPLES_BackslashQuotable = _gdalconst.CPLES_BackslashQuotable
    170  CPLES_XML = _gdalconst.CPLES_XML
    171  CPLES_URL = _gdalconst.CPLES_URL
    172  CPLES_SQL = _gdalconst.CPLES_SQL
    173  CPLES_CSV = _gdalconst.CPLES_CSV
    174  GFT_Integer = _gdalconst.GFT_Integer
    175  GFT_Real = _gdalconst.GFT_Real
    176  GFT_String = _gdalconst.GFT_String
    177  GFU_Generic = _gdalconst.GFU_Generic
    178  GFU_PixelCount = _gdalconst.GFU_PixelCount
    179  GFU_Name = _gdalconst.GFU_Name
    180  GFU_Min = _gdalconst.GFU_Min
    181  GFU_Max = _gdalconst.GFU_Max
    182  GFU_MinMax = _gdalconst.GFU_MinMax
    183  GFU_Red = _gdalconst.GFU_Red
    184  GFU_Green = _gdalconst.GFU_Green
    185  GFU_Blue = _gdalconst.GFU_Blue
    186  GFU_Alpha = _gdalconst.GFU_Alpha
    187  GFU_RedMin = _gdalconst.GFU_RedMin
    188  GFU_GreenMin = _gdalconst.GFU_GreenMin
    189  GFU_BlueMin = _gdalconst.GFU_BlueMin
    190  GFU_AlphaMin = _gdalconst.GFU_AlphaMin
    191  GFU_RedMax = _gdalconst.GFU_RedMax
    192  GFU_GreenMax = _gdalconst.GFU_GreenMax
    193  GFU_BlueMax = _gdalconst.GFU_BlueMax
    194  GFU_AlphaMax = _gdalconst.GFU_AlphaMax
    195  GFU_MaxCount = _gdalconst.GFU_MaxCount
    196  GMF_ALL_VALID = _gdalconst.GMF_ALL_VALID
    197  GMF_PER_DATASET = _gdalconst.GMF_PER_DATASET
    198  GMF_ALPHA = _gdalconst.GMF_ALPHA
    199  GMF_NODATA = _gdalconst.GMF_NODATA
    200  GARIO_PENDING = _gdalconst.GARIO_PENDING
    201  GARIO_UPDATE = _gdalconst.GARIO_UPDATE
    202  GARIO_ERROR = _gdalconst.GARIO_ERROR
    203  GARIO_COMPLETE = _gdalconst.GARIO_COMPLETE
    204  GTO_TIP = _gdalconst.GTO_TIP
    205  GTO_BIT = _gdalconst.GTO_BIT
    206  GTO_BSQ = _gdalconst.GTO_BSQ
    207