1
2
3
4
5
6
7
8 from sys import version_info
9 if version_info >= (2,6,0):
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
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
49
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
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:
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 GCI_Undefined = _gdalconst.GCI_Undefined
87 GCI_GrayIndex = _gdalconst.GCI_GrayIndex
88 GCI_PaletteIndex = _gdalconst.GCI_PaletteIndex
89 GCI_RedBand = _gdalconst.GCI_RedBand
90 GCI_GreenBand = _gdalconst.GCI_GreenBand
91 GCI_BlueBand = _gdalconst.GCI_BlueBand
92 GCI_AlphaBand = _gdalconst.GCI_AlphaBand
93 GCI_HueBand = _gdalconst.GCI_HueBand
94 GCI_SaturationBand = _gdalconst.GCI_SaturationBand
95 GCI_LightnessBand = _gdalconst.GCI_LightnessBand
96 GCI_CyanBand = _gdalconst.GCI_CyanBand
97 GCI_MagentaBand = _gdalconst.GCI_MagentaBand
98 GCI_YellowBand = _gdalconst.GCI_YellowBand
99 GCI_BlackBand = _gdalconst.GCI_BlackBand
100 GCI_YCbCr_YBand = _gdalconst.GCI_YCbCr_YBand
101 GCI_YCbCr_CrBand = _gdalconst.GCI_YCbCr_CrBand
102 GCI_YCbCr_CbBand = _gdalconst.GCI_YCbCr_CbBand
103 GRA_NearestNeighbour = _gdalconst.GRA_NearestNeighbour
104 GRA_Bilinear = _gdalconst.GRA_Bilinear
105 GRA_Cubic = _gdalconst.GRA_Cubic
106 GRA_CubicSpline = _gdalconst.GRA_CubicSpline
107 GRA_Lanczos = _gdalconst.GRA_Lanczos
108 GPI_Gray = _gdalconst.GPI_Gray
109 GPI_RGB = _gdalconst.GPI_RGB
110 GPI_CMYK = _gdalconst.GPI_CMYK
111 GPI_HLS = _gdalconst.GPI_HLS
112 CXT_Element = _gdalconst.CXT_Element
113 CXT_Text = _gdalconst.CXT_Text
114 CXT_Attribute = _gdalconst.CXT_Attribute
115 CXT_Comment = _gdalconst.CXT_Comment
116 CXT_Literal = _gdalconst.CXT_Literal
117 CE_None = _gdalconst.CE_None
118 CE_Debug = _gdalconst.CE_Debug
119 CE_Warning = _gdalconst.CE_Warning
120 CE_Failure = _gdalconst.CE_Failure
121 CE_Fatal = _gdalconst.CE_Fatal
122 CPLE_None = _gdalconst.CPLE_None
123 CPLE_AppDefined = _gdalconst.CPLE_AppDefined
124 CPLE_OutOfMemory = _gdalconst.CPLE_OutOfMemory
125 CPLE_FileIO = _gdalconst.CPLE_FileIO
126 CPLE_OpenFailed = _gdalconst.CPLE_OpenFailed
127 CPLE_IllegalArg = _gdalconst.CPLE_IllegalArg
128 CPLE_NotSupported = _gdalconst.CPLE_NotSupported
129 CPLE_AssertionFailed = _gdalconst.CPLE_AssertionFailed
130 CPLE_NoWriteAccess = _gdalconst.CPLE_NoWriteAccess
131 CPLE_UserInterrupt = _gdalconst.CPLE_UserInterrupt
132 DMD_LONGNAME = _gdalconst.DMD_LONGNAME
133 DMD_HELPTOPIC = _gdalconst.DMD_HELPTOPIC
134 DMD_MIMETYPE = _gdalconst.DMD_MIMETYPE
135 DMD_EXTENSION = _gdalconst.DMD_EXTENSION
136 DMD_CREATIONOPTIONLIST = _gdalconst.DMD_CREATIONOPTIONLIST
137 DMD_CREATIONDATATYPES = _gdalconst.DMD_CREATIONDATATYPES
138 DCAP_CREATE = _gdalconst.DCAP_CREATE
139 DCAP_CREATECOPY = _gdalconst.DCAP_CREATECOPY
140 DCAP_VIRTUALIO = _gdalconst.DCAP_VIRTUALIO
141 CPLES_BackslashQuotable = _gdalconst.CPLES_BackslashQuotable
142 CPLES_XML = _gdalconst.CPLES_XML
143 CPLES_URL = _gdalconst.CPLES_URL
144 CPLES_SQL = _gdalconst.CPLES_SQL
145 CPLES_CSV = _gdalconst.CPLES_CSV
146 GFT_Integer = _gdalconst.GFT_Integer
147 GFT_Real = _gdalconst.GFT_Real
148 GFT_String = _gdalconst.GFT_String
149 GFU_Generic = _gdalconst.GFU_Generic
150 GFU_PixelCount = _gdalconst.GFU_PixelCount
151 GFU_Name = _gdalconst.GFU_Name
152 GFU_Min = _gdalconst.GFU_Min
153 GFU_Max = _gdalconst.GFU_Max
154 GFU_MinMax = _gdalconst.GFU_MinMax
155 GFU_Red = _gdalconst.GFU_Red
156 GFU_Green = _gdalconst.GFU_Green
157 GFU_Blue = _gdalconst.GFU_Blue
158 GFU_Alpha = _gdalconst.GFU_Alpha
159 GFU_RedMin = _gdalconst.GFU_RedMin
160 GFU_GreenMin = _gdalconst.GFU_GreenMin
161 GFU_BlueMin = _gdalconst.GFU_BlueMin
162 GFU_AlphaMin = _gdalconst.GFU_AlphaMin
163 GFU_RedMax = _gdalconst.GFU_RedMax
164 GFU_GreenMax = _gdalconst.GFU_GreenMax
165 GFU_BlueMax = _gdalconst.GFU_BlueMax
166 GFU_AlphaMax = _gdalconst.GFU_AlphaMax
167 GFU_MaxCount = _gdalconst.GFU_MaxCount
168 GMF_ALL_VALID = _gdalconst.GMF_ALL_VALID
169 GMF_PER_DATASET = _gdalconst.GMF_PER_DATASET
170 GMF_ALPHA = _gdalconst.GMF_ALPHA
171 GMF_NODATA = _gdalconst.GMF_NODATA
172 GARIO_PENDING = _gdalconst.GARIO_PENDING
173 GARIO_UPDATE = _gdalconst.GARIO_UPDATE
174 GARIO_ERROR = _gdalconst.GARIO_ERROR
175 GARIO_COMPLETE = _gdalconst.GARIO_COMPLETE
176