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 3.0.12
      3  #
      4  # Do not make changes to this file unless you know what you are doing--modify
      5  # the SWIG interface file instead.
      6
      7  from sys import version_info as _swig_python_version_info
      8  if _swig_python_version_info >= (2, 7, 0):
      9 -    def swig_import_helper():
     10          import importlib
     11          pkg = __name__.rpartition('.')[0]
     12          mname = '.'.join((pkg, '_gdalconst')).lstrip('.')
     13          try:
     14              return importlib.import_module(mname)
     15          except ImportError:
     16              return importlib.import_module('_gdalconst')
     17      _gdalconst = swig_import_helper()
     18      del swig_import_helper
     19  elif _swig_python_version_info >= (2, 6, 0):
     20 -    def swig_import_helper():
     21          from os.path import dirname
     22          import imp
     23          fp = None
     24          try:
     25              fp, pathname, description = imp.find_module('_gdalconst', [dirname(__file__)])
     26          except ImportError:
     27              import _gdalconst
     28              return _gdalconst
     29          try:
     30              _mod = imp.load_module('_gdalconst', fp, pathname, description)
     31          finally:
     32              if fp is not None:
     33                  fp.close()
     34          return _mod
     35      _gdalconst = swig_import_helper()
     36      del swig_import_helper
     37  else:
     38      import _gdalconst
     39  del _swig_python_version_info
     40
     41  try:
     42      _swig_property = property
     43  except NameError:
     44      pass  # Python < 2.2 doesn't have 'property'.
     45
     46  try:
     47      import builtins as __builtin__
     48  except ImportError:
     49      import __builtin__
     50
     51 -def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
     52      if (name == "thisown"):
     53          return self.this.own(value)
     54      if (name == "this"):
     55          if type(value).__name__ == 'SwigPyObject':
     56              self.__dict__[name] = value
     57              return
     58      method = class_type.__swig_setmethods__.get(name, None)
     59      if method:
     60          return method(self, value)
     61      if (not static):
     62          if _newclass:
     63              object.__setattr__(self, name, value)
     64          else:
     65              self.__dict__[name] = value
     66      else:
     67          raise AttributeError("You cannot add attributes to %s" % self)
     68
     69
     70 -def _swig_setattr(self, class_type, name, value):
     71      return _swig_setattr_nondynamic(self, class_type, name, value, 0)
     72
     73
     74 -def _swig_getattr(self, class_type, name):
     75      if (name == "thisown"):
     76          return self.this.own()
     77      method = class_type.__swig_getmethods__.get(name, None)
     78      if method:
     79          return method(self)
     80      raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
     81
     82
     83 -def _swig_repr(self):
     84      try:
     85          strthis = "proxy of " + self.this.__repr__()
     86      except __builtin__.Exception:
     87          strthis = ""
     88      return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
     89
     90  try:
     91      _object = object
     92      _newclass = 1
     93  except __builtin__.Exception:
     94 -    class _object:
     95          pass
     96      _newclass = 0
     97
     98  GDT_Unknown = _gdalconst.GDT_Unknown
     99  GDT_Byte = _gdalconst.GDT_Byte
    100  GDT_UInt16 = _gdalconst.GDT_UInt16
    101  GDT_Int16 = _gdalconst.GDT_Int16
    102  GDT_UInt32 = _gdalconst.GDT_UInt32
    103  GDT_Int32 = _gdalconst.GDT_Int32
    104  GDT_Float32 = _gdalconst.GDT_Float32
    105  GDT_Float64 = _gdalconst.GDT_Float64
    106  GDT_CInt16 = _gdalconst.GDT_CInt16
    107  GDT_CInt32 = _gdalconst.GDT_CInt32
    108  GDT_CFloat32 = _gdalconst.GDT_CFloat32
    109  GDT_CFloat64 = _gdalconst.GDT_CFloat64
    110  GDT_TypeCount = _gdalconst.GDT_TypeCount
    111  GA_ReadOnly = _gdalconst.GA_ReadOnly
    112  GA_Update = _gdalconst.GA_Update
    113  GF_Read = _gdalconst.GF_Read
    114  GF_Write = _gdalconst.GF_Write
    115  GRIORA_NearestNeighbour = _gdalconst.GRIORA_NearestNeighbour
    116  GRIORA_Bilinear = _gdalconst.GRIORA_Bilinear
    117  GRIORA_Cubic = _gdalconst.GRIORA_Cubic
    118  GRIORA_CubicSpline = _gdalconst.GRIORA_CubicSpline
    119  GRIORA_Lanczos = _gdalconst.GRIORA_Lanczos
    120  GRIORA_Average = _gdalconst.GRIORA_Average
    121  GRIORA_Mode = _gdalconst.GRIORA_Mode
    122  GRIORA_Gauss = _gdalconst.GRIORA_Gauss
    123  GCI_Undefined = _gdalconst.GCI_Undefined
    124  GCI_GrayIndex = _gdalconst.GCI_GrayIndex
    125  GCI_PaletteIndex = _gdalconst.GCI_PaletteIndex
    126  GCI_RedBand = _gdalconst.GCI_RedBand
    127  GCI_GreenBand = _gdalconst.GCI_GreenBand
    128  GCI_BlueBand = _gdalconst.GCI_BlueBand
    129  GCI_AlphaBand = _gdalconst.GCI_AlphaBand
    130  GCI_HueBand = _gdalconst.GCI_HueBand
    131  GCI_SaturationBand = _gdalconst.GCI_SaturationBand
    132  GCI_LightnessBand = _gdalconst.GCI_LightnessBand
    133  GCI_CyanBand = _gdalconst.GCI_CyanBand
    134  GCI_MagentaBand = _gdalconst.GCI_MagentaBand
    135  GCI_YellowBand = _gdalconst.GCI_YellowBand
    136  GCI_BlackBand = _gdalconst.GCI_BlackBand
    137  GCI_YCbCr_YBand = _gdalconst.GCI_YCbCr_YBand
    138  GCI_YCbCr_CrBand = _gdalconst.GCI_YCbCr_CrBand
    139  GCI_YCbCr_CbBand = _gdalconst.GCI_YCbCr_CbBand
    140  GRA_NearestNeighbour = _gdalconst.GRA_NearestNeighbour
    141  GRA_Bilinear = _gdalconst.GRA_Bilinear
    142  GRA_Cubic = _gdalconst.GRA_Cubic
    143  GRA_CubicSpline = _gdalconst.GRA_CubicSpline
    144  GRA_Lanczos = _gdalconst.GRA_Lanczos
    145  GRA_Average = _gdalconst.GRA_Average
    146  GRA_Mode = _gdalconst.GRA_Mode
    147  GRA_Max = _gdalconst.GRA_Max
    148  GRA_Min = _gdalconst.GRA_Min
    149  GRA_Med = _gdalconst.GRA_Med
    150  GRA_Q1 = _gdalconst.GRA_Q1
    151  GRA_Q3 = _gdalconst.GRA_Q3
    152  GPI_Gray = _gdalconst.GPI_Gray
    153  GPI_RGB = _gdalconst.GPI_RGB
    154  GPI_CMYK = _gdalconst.GPI_CMYK
    155  GPI_HLS = _gdalconst.GPI_HLS
    156  CXT_Element = _gdalconst.CXT_Element
    157  CXT_Text = _gdalconst.CXT_Text
    158  CXT_Attribute = _gdalconst.CXT_Attribute
    159  CXT_Comment = _gdalconst.CXT_Comment
    160  CXT_Literal = _gdalconst.CXT_Literal
    161  CE_None = _gdalconst.CE_None
    162  CE_Debug = _gdalconst.CE_Debug
    163  CE_Warning = _gdalconst.CE_Warning
    164  CE_Failure = _gdalconst.CE_Failure
    165  CE_Fatal = _gdalconst.CE_Fatal
    166  CPLE_None = _gdalconst.CPLE_None
    167  CPLE_AppDefined = _gdalconst.CPLE_AppDefined
    168  CPLE_OutOfMemory = _gdalconst.CPLE_OutOfMemory
    169  CPLE_FileIO = _gdalconst.CPLE_FileIO
    170  CPLE_OpenFailed = _gdalconst.CPLE_OpenFailed
    171  CPLE_IllegalArg = _gdalconst.CPLE_IllegalArg
    172  CPLE_NotSupported = _gdalconst.CPLE_NotSupported
    173  CPLE_AssertionFailed = _gdalconst.CPLE_AssertionFailed
    174  CPLE_NoWriteAccess = _gdalconst.CPLE_NoWriteAccess
    175  CPLE_UserInterrupt = _gdalconst.CPLE_UserInterrupt
    176  CPLE_ObjectNull = _gdalconst.CPLE_ObjectNull
    177  CPLE_HttpResponse = _gdalconst.CPLE_HttpResponse
    178  CPLE_AWSBucketNotFound = _gdalconst.CPLE_AWSBucketNotFound
    179  CPLE_AWSObjectNotFound = _gdalconst.CPLE_AWSObjectNotFound
    180  CPLE_AWSAccessDenied = _gdalconst.CPLE_AWSAccessDenied
    181  CPLE_AWSInvalidCredentials = _gdalconst.CPLE_AWSInvalidCredentials
    182  CPLE_AWSSignatureDoesNotMatch = _gdalconst.CPLE_AWSSignatureDoesNotMatch
    183  OF_ALL = _gdalconst.OF_ALL
    184  OF_RASTER = _gdalconst.OF_RASTER
    185  OF_VECTOR = _gdalconst.OF_VECTOR
    186  OF_GNM = _gdalconst.OF_GNM
    187  OF_MULTIDIM_RASTER = _gdalconst.OF_MULTIDIM_RASTER
    188  OF_READONLY = _gdalconst.OF_READONLY
    189  OF_UPDATE = _gdalconst.OF_UPDATE
    190  OF_SHARED = _gdalconst.OF_SHARED
    191  OF_VERBOSE_ERROR = _gdalconst.OF_VERBOSE_ERROR
    192  DMD_LONGNAME = _gdalconst.DMD_LONGNAME
    193  DMD_HELPTOPIC = _gdalconst.DMD_HELPTOPIC
    194  DMD_MIMETYPE = _gdalconst.DMD_MIMETYPE
    195  DMD_EXTENSION = _gdalconst.DMD_EXTENSION
    196  DMD_EXTENSIONS = _gdalconst.DMD_EXTENSIONS
    197  DMD_CONNECTION_PREFIX = _gdalconst.DMD_CONNECTION_PREFIX
    198  DMD_CREATIONOPTIONLIST = _gdalconst.DMD_CREATIONOPTIONLIST
    199  DMD_CREATIONDATATYPES = _gdalconst.DMD_CREATIONDATATYPES
    200  DMD_CREATIONFIELDDATATYPES = _gdalconst.DMD_CREATIONFIELDDATATYPES
    201  DMD_SUBDATASETS = _gdalconst.DMD_SUBDATASETS
    202  DCAP_OPEN = _gdalconst.DCAP_OPEN
    203  DCAP_CREATE = _gdalconst.DCAP_CREATE
    204  DCAP_CREATECOPY = _gdalconst.DCAP_CREATECOPY
    205  DCAP_VIRTUALIO = _gdalconst.DCAP_VIRTUALIO
    206  DCAP_RASTER = _gdalconst.DCAP_RASTER
    207  DCAP_VECTOR = _gdalconst.DCAP_VECTOR
    208  DCAP_NOTNULL_FIELDS = _gdalconst.DCAP_NOTNULL_FIELDS
    209  DCAP_DEFAULT_FIELDS = _gdalconst.DCAP_DEFAULT_FIELDS
    210  DCAP_NOTNULL_GEOMFIELDS = _gdalconst.DCAP_NOTNULL_GEOMFIELDS
    211  DCAP_UNIQUE_FIELDS = _gdalconst.DCAP_UNIQUE_FIELDS
    212  DIM_TYPE_HORIZONTAL_X = _gdalconst.DIM_TYPE_HORIZONTAL_X
    213  DIM_TYPE_HORIZONTAL_Y = _gdalconst.DIM_TYPE_HORIZONTAL_Y
    214  DIM_TYPE_VERTICAL = _gdalconst.DIM_TYPE_VERTICAL
    215  DIM_TYPE_TEMPORAL = _gdalconst.DIM_TYPE_TEMPORAL
    216  DIM_TYPE_PARAMETRIC = _gdalconst.DIM_TYPE_PARAMETRIC
    217  CPLES_BackslashQuotable = _gdalconst.CPLES_BackslashQuotable
    218  CPLES_XML = _gdalconst.CPLES_XML
    219  CPLES_URL = _gdalconst.CPLES_URL
    220  CPLES_SQL = _gdalconst.CPLES_SQL
    221  CPLES_CSV = _gdalconst.CPLES_CSV
    222  GFT_Integer = _gdalconst.GFT_Integer
    223  GFT_Real = _gdalconst.GFT_Real
    224  GFT_String = _gdalconst.GFT_String
    225  GFU_Generic = _gdalconst.GFU_Generic
    226  GFU_PixelCount = _gdalconst.GFU_PixelCount
    227  GFU_Name = _gdalconst.GFU_Name
    228  GFU_Min = _gdalconst.GFU_Min
    229  GFU_Max = _gdalconst.GFU_Max
    230  GFU_MinMax = _gdalconst.GFU_MinMax
    231  GFU_Red = _gdalconst.GFU_Red
    232  GFU_Green = _gdalconst.GFU_Green
    233  GFU_Blue = _gdalconst.GFU_Blue
    234  GFU_Alpha = _gdalconst.GFU_Alpha
    235  GFU_RedMin = _gdalconst.GFU_RedMin
    236  GFU_GreenMin = _gdalconst.GFU_GreenMin
    237  GFU_BlueMin = _gdalconst.GFU_BlueMin
    238  GFU_AlphaMin = _gdalconst.GFU_AlphaMin
    239  GFU_RedMax = _gdalconst.GFU_RedMax
    240  GFU_GreenMax = _gdalconst.GFU_GreenMax
    241  GFU_BlueMax = _gdalconst.GFU_BlueMax
    242  GFU_AlphaMax = _gdalconst.GFU_AlphaMax
    243  GFU_MaxCount = _gdalconst.GFU_MaxCount
    244  GRTT_THEMATIC = _gdalconst.GRTT_THEMATIC
    245  GRTT_ATHEMATIC = _gdalconst.GRTT_ATHEMATIC
    246  GMF_ALL_VALID = _gdalconst.GMF_ALL_VALID
    247  GMF_PER_DATASET = _gdalconst.GMF_PER_DATASET
    248  GMF_ALPHA = _gdalconst.GMF_ALPHA
    249  GMF_NODATA = _gdalconst.GMF_NODATA
    250  GDAL_DATA_COVERAGE_STATUS_UNIMPLEMENTED = _gdalconst.GDAL_DATA_COVERAGE_STATUS_UNIMPLEMENTED
    251  GDAL_DATA_COVERAGE_STATUS_DATA = _gdalconst.GDAL_DATA_COVERAGE_STATUS_DATA
    252  GDAL_DATA_COVERAGE_STATUS_EMPTY = _gdalconst.GDAL_DATA_COVERAGE_STATUS_EMPTY
    253  GARIO_PENDING = _gdalconst.GARIO_PENDING
    254  GARIO_UPDATE = _gdalconst.GARIO_UPDATE
    255  GARIO_ERROR = _gdalconst.GARIO_ERROR
    256  GARIO_COMPLETE = _gdalconst.GARIO_COMPLETE
    257  GTO_TIP = _gdalconst.GTO_TIP
    258  GTO_BIT = _gdalconst.GTO_BIT
    259  GTO_BSQ = _gdalconst.GTO_BSQ
    260  # This file is compatible with both classic and new-style classes.
    261