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_UInt64 = _gdalconst.GDT_UInt64
    105  GDT_Int64 = _gdalconst.GDT_Int64
    106  GDT_Float32 = _gdalconst.GDT_Float32
    107  GDT_Float64 = _gdalconst.GDT_Float64
    108  GDT_CInt16 = _gdalconst.GDT_CInt16
    109  GDT_CInt32 = _gdalconst.GDT_CInt32
    110  GDT_CFloat32 = _gdalconst.GDT_CFloat32
    111  GDT_CFloat64 = _gdalconst.GDT_CFloat64
    112  GDT_TypeCount = _gdalconst.GDT_TypeCount
    113  GA_ReadOnly = _gdalconst.GA_ReadOnly
    114  GA_Update = _gdalconst.GA_Update
    115  GF_Read = _gdalconst.GF_Read
    116  GF_Write = _gdalconst.GF_Write
    117  GRIORA_NearestNeighbour = _gdalconst.GRIORA_NearestNeighbour
    118  GRIORA_Bilinear = _gdalconst.GRIORA_Bilinear
    119  GRIORA_Cubic = _gdalconst.GRIORA_Cubic
    120  GRIORA_CubicSpline = _gdalconst.GRIORA_CubicSpline
    121  GRIORA_Lanczos = _gdalconst.GRIORA_Lanczos
    122  GRIORA_Average = _gdalconst.GRIORA_Average
    123  GRIORA_RMS = _gdalconst.GRIORA_RMS
    124  GRIORA_Mode = _gdalconst.GRIORA_Mode
    125  GRIORA_Gauss = _gdalconst.GRIORA_Gauss
    126  GCI_Undefined = _gdalconst.GCI_Undefined
    127  GCI_GrayIndex = _gdalconst.GCI_GrayIndex
    128  GCI_PaletteIndex = _gdalconst.GCI_PaletteIndex
    129  GCI_RedBand = _gdalconst.GCI_RedBand
    130  GCI_GreenBand = _gdalconst.GCI_GreenBand
    131  GCI_BlueBand = _gdalconst.GCI_BlueBand
    132  GCI_AlphaBand = _gdalconst.GCI_AlphaBand
    133  GCI_HueBand = _gdalconst.GCI_HueBand
    134  GCI_SaturationBand = _gdalconst.GCI_SaturationBand
    135  GCI_LightnessBand = _gdalconst.GCI_LightnessBand
    136  GCI_CyanBand = _gdalconst.GCI_CyanBand
    137  GCI_MagentaBand = _gdalconst.GCI_MagentaBand
    138  GCI_YellowBand = _gdalconst.GCI_YellowBand
    139  GCI_BlackBand = _gdalconst.GCI_BlackBand
    140  GCI_YCbCr_YBand = _gdalconst.GCI_YCbCr_YBand
    141  GCI_YCbCr_CrBand = _gdalconst.GCI_YCbCr_CrBand
    142  GCI_YCbCr_CbBand = _gdalconst.GCI_YCbCr_CbBand
    143  GRA_NearestNeighbour = _gdalconst.GRA_NearestNeighbour
    144  GRA_Bilinear = _gdalconst.GRA_Bilinear
    145  GRA_Cubic = _gdalconst.GRA_Cubic
    146  GRA_CubicSpline = _gdalconst.GRA_CubicSpline
    147  GRA_Lanczos = _gdalconst.GRA_Lanczos
    148  GRA_Average = _gdalconst.GRA_Average
    149  GRA_RMS = _gdalconst.GRA_RMS
    150  GRA_Mode = _gdalconst.GRA_Mode
    151  GRA_Max = _gdalconst.GRA_Max
    152  GRA_Min = _gdalconst.GRA_Min
    153  GRA_Med = _gdalconst.GRA_Med
    154  GRA_Q1 = _gdalconst.GRA_Q1
    155  GRA_Q3 = _gdalconst.GRA_Q3
    156  GRA_Sum = _gdalconst.GRA_Sum
    157  GPI_Gray = _gdalconst.GPI_Gray
    158  GPI_RGB = _gdalconst.GPI_RGB
    159  GPI_CMYK = _gdalconst.GPI_CMYK
    160  GPI_HLS = _gdalconst.GPI_HLS
    161  CXT_Element = _gdalconst.CXT_Element
    162  CXT_Text = _gdalconst.CXT_Text
    163  CXT_Attribute = _gdalconst.CXT_Attribute
    164  CXT_Comment = _gdalconst.CXT_Comment
    165  CXT_Literal = _gdalconst.CXT_Literal
    166  CE_None = _gdalconst.CE_None
    167  CE_Debug = _gdalconst.CE_Debug
    168  CE_Warning = _gdalconst.CE_Warning
    169  CE_Failure = _gdalconst.CE_Failure
    170  CE_Fatal = _gdalconst.CE_Fatal
    171  CPLE_None = _gdalconst.CPLE_None
    172  CPLE_AppDefined = _gdalconst.CPLE_AppDefined
    173  CPLE_OutOfMemory = _gdalconst.CPLE_OutOfMemory
    174  CPLE_FileIO = _gdalconst.CPLE_FileIO
    175  CPLE_OpenFailed = _gdalconst.CPLE_OpenFailed
    176  CPLE_IllegalArg = _gdalconst.CPLE_IllegalArg
    177  CPLE_NotSupported = _gdalconst.CPLE_NotSupported
    178  CPLE_AssertionFailed = _gdalconst.CPLE_AssertionFailed
    179  CPLE_NoWriteAccess = _gdalconst.CPLE_NoWriteAccess
    180  CPLE_UserInterrupt = _gdalconst.CPLE_UserInterrupt
    181  CPLE_ObjectNull = _gdalconst.CPLE_ObjectNull
    182  CPLE_HttpResponse = _gdalconst.CPLE_HttpResponse
    183  CPLE_AWSBucketNotFound = _gdalconst.CPLE_AWSBucketNotFound
    184  CPLE_AWSObjectNotFound = _gdalconst.CPLE_AWSObjectNotFound
    185  CPLE_AWSAccessDenied = _gdalconst.CPLE_AWSAccessDenied
    186  CPLE_AWSInvalidCredentials = _gdalconst.CPLE_AWSInvalidCredentials
    187  CPLE_AWSSignatureDoesNotMatch = _gdalconst.CPLE_AWSSignatureDoesNotMatch
    188  OF_ALL = _gdalconst.OF_ALL
    189  OF_RASTER = _gdalconst.OF_RASTER
    190  OF_VECTOR = _gdalconst.OF_VECTOR
    191  OF_GNM = _gdalconst.OF_GNM
    192  OF_MULTIDIM_RASTER = _gdalconst.OF_MULTIDIM_RASTER
    193  OF_READONLY = _gdalconst.OF_READONLY
    194  OF_UPDATE = _gdalconst.OF_UPDATE
    195  OF_SHARED = _gdalconst.OF_SHARED
    196  OF_VERBOSE_ERROR = _gdalconst.OF_VERBOSE_ERROR
    197  DMD_LONGNAME = _gdalconst.DMD_LONGNAME
    198  DMD_HELPTOPIC = _gdalconst.DMD_HELPTOPIC
    199  DMD_MIMETYPE = _gdalconst.DMD_MIMETYPE
    200  DMD_EXTENSION = _gdalconst.DMD_EXTENSION
    201  DMD_CONNECTION_PREFIX = _gdalconst.DMD_CONNECTION_PREFIX
    202  DMD_EXTENSIONS = _gdalconst.DMD_EXTENSIONS
    203  DMD_CREATIONOPTIONLIST = _gdalconst.DMD_CREATIONOPTIONLIST
    204  DMD_MULTIDIM_DATASET_CREATIONOPTIONLIST = _gdalconst.DMD_MULTIDIM_DATASET_CREATIONOPTIONLIST
    205  DMD_MULTIDIM_GROUP_CREATIONOPTIONLIST = _gdalconst.DMD_MULTIDIM_GROUP_CREATIONOPTIONLIST
    206  DMD_MULTIDIM_DIMENSION_CREATIONOPTIONLIST = _gdalconst.DMD_MULTIDIM_DIMENSION_CREATIONOPTIONLIST
    207  DMD_MULTIDIM_ARRAY_CREATIONOPTIONLIST = _gdalconst.DMD_MULTIDIM_ARRAY_CREATIONOPTIONLIST
    208  DMD_MULTIDIM_ATTRIBUTE_CREATIONOPTIONLIST = _gdalconst.DMD_MULTIDIM_ATTRIBUTE_CREATIONOPTIONLIST
    209  DMD_OPENOPTIONLIST = _gdalconst.DMD_OPENOPTIONLIST
    210  DMD_CREATIONDATATYPES = _gdalconst.DMD_CREATIONDATATYPES
    211  DMD_CREATIONFIELDDATATYPES = _gdalconst.DMD_CREATIONFIELDDATATYPES
    212  DMD_CREATIONFIELDDATASUBTYPES = _gdalconst.DMD_CREATIONFIELDDATASUBTYPES
    213  DMD_SUBDATASETS = _gdalconst.DMD_SUBDATASETS
    214  DMD_CREATION_FIELD_DOMAIN_TYPES = _gdalconst.DMD_CREATION_FIELD_DOMAIN_TYPES
    215  DCAP_OPEN = _gdalconst.DCAP_OPEN
    216  DCAP_CREATE = _gdalconst.DCAP_CREATE
    217  DCAP_CREATE_MULTIDIMENSIONAL = _gdalconst.DCAP_CREATE_MULTIDIMENSIONAL
    218  DCAP_CREATECOPY = _gdalconst.DCAP_CREATECOPY
    219  DCAP_CREATECOPY_MULTIDIMENSIONAL = _gdalconst.DCAP_CREATECOPY_MULTIDIMENSIONAL
    220  DCAP_MULTIDIM_RASTER = _gdalconst.DCAP_MULTIDIM_RASTER
    221  DCAP_SUBCREATECOPY = _gdalconst.DCAP_SUBCREATECOPY
    222  DCAP_VIRTUALIO = _gdalconst.DCAP_VIRTUALIO
    223  DCAP_RASTER = _gdalconst.DCAP_RASTER
    224  DCAP_VECTOR = _gdalconst.DCAP_VECTOR
    225  DCAP_GNM = _gdalconst.DCAP_GNM
    226  DCAP_NOTNULL_FIELDS = _gdalconst.DCAP_NOTNULL_FIELDS
    227  DCAP_UNIQUE_FIELDS = _gdalconst.DCAP_UNIQUE_FIELDS
    228  DCAP_DEFAULT_FIELDS = _gdalconst.DCAP_DEFAULT_FIELDS
    229  DCAP_NOTNULL_GEOMFIELDS = _gdalconst.DCAP_NOTNULL_GEOMFIELDS
    230  DCAP_NONSPATIAL = _gdalconst.DCAP_NONSPATIAL
    231  DCAP_FEATURE_STYLES = _gdalconst.DCAP_FEATURE_STYLES
    232  DCAP_COORDINATE_EPOCH = _gdalconst.DCAP_COORDINATE_EPOCH
    233  DCAP_MULTIPLE_VECTOR_LAYERS = _gdalconst.DCAP_MULTIPLE_VECTOR_LAYERS
    234  DCAP_FIELD_DOMAINS = _gdalconst.DCAP_FIELD_DOMAINS
    235  DCAP_RENAME_LAYERS = _gdalconst.DCAP_RENAME_LAYERS
    236  DIM_TYPE_HORIZONTAL_X = _gdalconst.DIM_TYPE_HORIZONTAL_X
    237  DIM_TYPE_HORIZONTAL_Y = _gdalconst.DIM_TYPE_HORIZONTAL_Y
    238  DIM_TYPE_VERTICAL = _gdalconst.DIM_TYPE_VERTICAL
    239  DIM_TYPE_TEMPORAL = _gdalconst.DIM_TYPE_TEMPORAL
    240  DIM_TYPE_PARAMETRIC = _gdalconst.DIM_TYPE_PARAMETRIC
    241  CPLES_BackslashQuotable = _gdalconst.CPLES_BackslashQuotable
    242  CPLES_XML = _gdalconst.CPLES_XML
    243  CPLES_XML_BUT_QUOTES = _gdalconst.CPLES_XML_BUT_QUOTES
    244  CPLES_URL = _gdalconst.CPLES_URL
    245  CPLES_SQL = _gdalconst.CPLES_SQL
    246  CPLES_SQLI = _gdalconst.CPLES_SQLI
    247  CPLES_CSV = _gdalconst.CPLES_CSV
    248  GFT_Integer = _gdalconst.GFT_Integer
    249  GFT_Real = _gdalconst.GFT_Real
    250  GFT_String = _gdalconst.GFT_String
    251  GFU_Generic = _gdalconst.GFU_Generic
    252  GFU_PixelCount = _gdalconst.GFU_PixelCount
    253  GFU_Name = _gdalconst.GFU_Name
    254  GFU_Min = _gdalconst.GFU_Min
    255  GFU_Max = _gdalconst.GFU_Max
    256  GFU_MinMax = _gdalconst.GFU_MinMax
    257  GFU_Red = _gdalconst.GFU_Red
    258  GFU_Green = _gdalconst.GFU_Green
    259  GFU_Blue = _gdalconst.GFU_Blue
    260  GFU_Alpha = _gdalconst.GFU_Alpha
    261  GFU_RedMin = _gdalconst.GFU_RedMin
    262  GFU_GreenMin = _gdalconst.GFU_GreenMin
    263  GFU_BlueMin = _gdalconst.GFU_BlueMin
    264  GFU_AlphaMin = _gdalconst.GFU_AlphaMin
    265  GFU_RedMax = _gdalconst.GFU_RedMax
    266  GFU_GreenMax = _gdalconst.GFU_GreenMax
    267  GFU_BlueMax = _gdalconst.GFU_BlueMax
    268  GFU_AlphaMax = _gdalconst.GFU_AlphaMax
    269  GFU_MaxCount = _gdalconst.GFU_MaxCount
    270  GRTT_THEMATIC = _gdalconst.GRTT_THEMATIC
    271  GRTT_ATHEMATIC = _gdalconst.GRTT_ATHEMATIC
    272  GMF_ALL_VALID = _gdalconst.GMF_ALL_VALID
    273  GMF_PER_DATASET = _gdalconst.GMF_PER_DATASET
    274  GMF_ALPHA = _gdalconst.GMF_ALPHA
    275  GMF_NODATA = _gdalconst.GMF_NODATA
    276  GDAL_DATA_COVERAGE_STATUS_UNIMPLEMENTED = _gdalconst.GDAL_DATA_COVERAGE_STATUS_UNIMPLEMENTED
    277  GDAL_DATA_COVERAGE_STATUS_DATA = _gdalconst.GDAL_DATA_COVERAGE_STATUS_DATA
    278  GDAL_DATA_COVERAGE_STATUS_EMPTY = _gdalconst.GDAL_DATA_COVERAGE_STATUS_EMPTY
    279  GARIO_PENDING = _gdalconst.GARIO_PENDING
    280  GARIO_UPDATE = _gdalconst.GARIO_UPDATE
    281  GARIO_ERROR = _gdalconst.GARIO_ERROR
    282  GARIO_COMPLETE = _gdalconst.GARIO_COMPLETE
    283  GTO_TIP = _gdalconst.GTO_TIP
    284  GTO_BIT = _gdalconst.GTO_BIT
    285  GTO_BSQ = _gdalconst.GTO_BSQ
    286  # This file is compatible with both classic and new-style classes.
    287