/usr/lib/python3/dist-packages/osgeo/gdalconst.py is in python3-gdal 1.11.3+dfsg-3build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_gdalconst', [dirname(__file__)])
except ImportError:
import _gdalconst
return _gdalconst
if fp is not None:
try:
_mod = imp.load_module('_gdalconst', fp, pathname, description)
finally:
fp.close()
return _mod
_gdalconst = swig_import_helper()
del swig_import_helper
else:
import _gdalconst
del version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if (not static):
if _newclass:
object.__setattr__(self, name, value)
else:
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr_nondynamic(self, class_type, name, static=1):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
if (not static):
return object.__getattr__(self, name)
else:
raise AttributeError(name)
def _swig_getattr(self, class_type, name):
return _swig_getattr_nondynamic(self, class_type, name, 0)
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except AttributeError:
class _object:
pass
_newclass = 0
_gdalconst.GDT_Unknown_swigconstant(_gdalconst)
GDT_Unknown = _gdalconst.GDT_Unknown
_gdalconst.GDT_Byte_swigconstant(_gdalconst)
GDT_Byte = _gdalconst.GDT_Byte
_gdalconst.GDT_UInt16_swigconstant(_gdalconst)
GDT_UInt16 = _gdalconst.GDT_UInt16
_gdalconst.GDT_Int16_swigconstant(_gdalconst)
GDT_Int16 = _gdalconst.GDT_Int16
_gdalconst.GDT_UInt32_swigconstant(_gdalconst)
GDT_UInt32 = _gdalconst.GDT_UInt32
_gdalconst.GDT_Int32_swigconstant(_gdalconst)
GDT_Int32 = _gdalconst.GDT_Int32
_gdalconst.GDT_Float32_swigconstant(_gdalconst)
GDT_Float32 = _gdalconst.GDT_Float32
_gdalconst.GDT_Float64_swigconstant(_gdalconst)
GDT_Float64 = _gdalconst.GDT_Float64
_gdalconst.GDT_CInt16_swigconstant(_gdalconst)
GDT_CInt16 = _gdalconst.GDT_CInt16
_gdalconst.GDT_CInt32_swigconstant(_gdalconst)
GDT_CInt32 = _gdalconst.GDT_CInt32
_gdalconst.GDT_CFloat32_swigconstant(_gdalconst)
GDT_CFloat32 = _gdalconst.GDT_CFloat32
_gdalconst.GDT_CFloat64_swigconstant(_gdalconst)
GDT_CFloat64 = _gdalconst.GDT_CFloat64
_gdalconst.GDT_TypeCount_swigconstant(_gdalconst)
GDT_TypeCount = _gdalconst.GDT_TypeCount
_gdalconst.GA_ReadOnly_swigconstant(_gdalconst)
GA_ReadOnly = _gdalconst.GA_ReadOnly
_gdalconst.GA_Update_swigconstant(_gdalconst)
GA_Update = _gdalconst.GA_Update
_gdalconst.GF_Read_swigconstant(_gdalconst)
GF_Read = _gdalconst.GF_Read
_gdalconst.GF_Write_swigconstant(_gdalconst)
GF_Write = _gdalconst.GF_Write
_gdalconst.GCI_Undefined_swigconstant(_gdalconst)
GCI_Undefined = _gdalconst.GCI_Undefined
_gdalconst.GCI_GrayIndex_swigconstant(_gdalconst)
GCI_GrayIndex = _gdalconst.GCI_GrayIndex
_gdalconst.GCI_PaletteIndex_swigconstant(_gdalconst)
GCI_PaletteIndex = _gdalconst.GCI_PaletteIndex
_gdalconst.GCI_RedBand_swigconstant(_gdalconst)
GCI_RedBand = _gdalconst.GCI_RedBand
_gdalconst.GCI_GreenBand_swigconstant(_gdalconst)
GCI_GreenBand = _gdalconst.GCI_GreenBand
_gdalconst.GCI_BlueBand_swigconstant(_gdalconst)
GCI_BlueBand = _gdalconst.GCI_BlueBand
_gdalconst.GCI_AlphaBand_swigconstant(_gdalconst)
GCI_AlphaBand = _gdalconst.GCI_AlphaBand
_gdalconst.GCI_HueBand_swigconstant(_gdalconst)
GCI_HueBand = _gdalconst.GCI_HueBand
_gdalconst.GCI_SaturationBand_swigconstant(_gdalconst)
GCI_SaturationBand = _gdalconst.GCI_SaturationBand
_gdalconst.GCI_LightnessBand_swigconstant(_gdalconst)
GCI_LightnessBand = _gdalconst.GCI_LightnessBand
_gdalconst.GCI_CyanBand_swigconstant(_gdalconst)
GCI_CyanBand = _gdalconst.GCI_CyanBand
_gdalconst.GCI_MagentaBand_swigconstant(_gdalconst)
GCI_MagentaBand = _gdalconst.GCI_MagentaBand
_gdalconst.GCI_YellowBand_swigconstant(_gdalconst)
GCI_YellowBand = _gdalconst.GCI_YellowBand
_gdalconst.GCI_BlackBand_swigconstant(_gdalconst)
GCI_BlackBand = _gdalconst.GCI_BlackBand
_gdalconst.GCI_YCbCr_YBand_swigconstant(_gdalconst)
GCI_YCbCr_YBand = _gdalconst.GCI_YCbCr_YBand
_gdalconst.GCI_YCbCr_CrBand_swigconstant(_gdalconst)
GCI_YCbCr_CrBand = _gdalconst.GCI_YCbCr_CrBand
_gdalconst.GCI_YCbCr_CbBand_swigconstant(_gdalconst)
GCI_YCbCr_CbBand = _gdalconst.GCI_YCbCr_CbBand
_gdalconst.GRA_NearestNeighbour_swigconstant(_gdalconst)
GRA_NearestNeighbour = _gdalconst.GRA_NearestNeighbour
_gdalconst.GRA_Bilinear_swigconstant(_gdalconst)
GRA_Bilinear = _gdalconst.GRA_Bilinear
_gdalconst.GRA_Cubic_swigconstant(_gdalconst)
GRA_Cubic = _gdalconst.GRA_Cubic
_gdalconst.GRA_CubicSpline_swigconstant(_gdalconst)
GRA_CubicSpline = _gdalconst.GRA_CubicSpline
_gdalconst.GRA_Lanczos_swigconstant(_gdalconst)
GRA_Lanczos = _gdalconst.GRA_Lanczos
_gdalconst.GRA_Average_swigconstant(_gdalconst)
GRA_Average = _gdalconst.GRA_Average
_gdalconst.GRA_Mode_swigconstant(_gdalconst)
GRA_Mode = _gdalconst.GRA_Mode
_gdalconst.GPI_Gray_swigconstant(_gdalconst)
GPI_Gray = _gdalconst.GPI_Gray
_gdalconst.GPI_RGB_swigconstant(_gdalconst)
GPI_RGB = _gdalconst.GPI_RGB
_gdalconst.GPI_CMYK_swigconstant(_gdalconst)
GPI_CMYK = _gdalconst.GPI_CMYK
_gdalconst.GPI_HLS_swigconstant(_gdalconst)
GPI_HLS = _gdalconst.GPI_HLS
_gdalconst.CXT_Element_swigconstant(_gdalconst)
CXT_Element = _gdalconst.CXT_Element
_gdalconst.CXT_Text_swigconstant(_gdalconst)
CXT_Text = _gdalconst.CXT_Text
_gdalconst.CXT_Attribute_swigconstant(_gdalconst)
CXT_Attribute = _gdalconst.CXT_Attribute
_gdalconst.CXT_Comment_swigconstant(_gdalconst)
CXT_Comment = _gdalconst.CXT_Comment
_gdalconst.CXT_Literal_swigconstant(_gdalconst)
CXT_Literal = _gdalconst.CXT_Literal
_gdalconst.CE_None_swigconstant(_gdalconst)
CE_None = _gdalconst.CE_None
_gdalconst.CE_Debug_swigconstant(_gdalconst)
CE_Debug = _gdalconst.CE_Debug
_gdalconst.CE_Warning_swigconstant(_gdalconst)
CE_Warning = _gdalconst.CE_Warning
_gdalconst.CE_Failure_swigconstant(_gdalconst)
CE_Failure = _gdalconst.CE_Failure
_gdalconst.CE_Fatal_swigconstant(_gdalconst)
CE_Fatal = _gdalconst.CE_Fatal
_gdalconst.CPLE_None_swigconstant(_gdalconst)
CPLE_None = _gdalconst.CPLE_None
_gdalconst.CPLE_AppDefined_swigconstant(_gdalconst)
CPLE_AppDefined = _gdalconst.CPLE_AppDefined
_gdalconst.CPLE_OutOfMemory_swigconstant(_gdalconst)
CPLE_OutOfMemory = _gdalconst.CPLE_OutOfMemory
_gdalconst.CPLE_FileIO_swigconstant(_gdalconst)
CPLE_FileIO = _gdalconst.CPLE_FileIO
_gdalconst.CPLE_OpenFailed_swigconstant(_gdalconst)
CPLE_OpenFailed = _gdalconst.CPLE_OpenFailed
_gdalconst.CPLE_IllegalArg_swigconstant(_gdalconst)
CPLE_IllegalArg = _gdalconst.CPLE_IllegalArg
_gdalconst.CPLE_NotSupported_swigconstant(_gdalconst)
CPLE_NotSupported = _gdalconst.CPLE_NotSupported
_gdalconst.CPLE_AssertionFailed_swigconstant(_gdalconst)
CPLE_AssertionFailed = _gdalconst.CPLE_AssertionFailed
_gdalconst.CPLE_NoWriteAccess_swigconstant(_gdalconst)
CPLE_NoWriteAccess = _gdalconst.CPLE_NoWriteAccess
_gdalconst.CPLE_UserInterrupt_swigconstant(_gdalconst)
CPLE_UserInterrupt = _gdalconst.CPLE_UserInterrupt
_gdalconst.DMD_LONGNAME_swigconstant(_gdalconst)
DMD_LONGNAME = _gdalconst.DMD_LONGNAME
_gdalconst.DMD_HELPTOPIC_swigconstant(_gdalconst)
DMD_HELPTOPIC = _gdalconst.DMD_HELPTOPIC
_gdalconst.DMD_MIMETYPE_swigconstant(_gdalconst)
DMD_MIMETYPE = _gdalconst.DMD_MIMETYPE
_gdalconst.DMD_EXTENSION_swigconstant(_gdalconst)
DMD_EXTENSION = _gdalconst.DMD_EXTENSION
_gdalconst.DMD_CREATIONOPTIONLIST_swigconstant(_gdalconst)
DMD_CREATIONOPTIONLIST = _gdalconst.DMD_CREATIONOPTIONLIST
_gdalconst.DMD_CREATIONDATATYPES_swigconstant(_gdalconst)
DMD_CREATIONDATATYPES = _gdalconst.DMD_CREATIONDATATYPES
_gdalconst.DMD_SUBDATASETS_swigconstant(_gdalconst)
DMD_SUBDATASETS = _gdalconst.DMD_SUBDATASETS
_gdalconst.DCAP_CREATE_swigconstant(_gdalconst)
DCAP_CREATE = _gdalconst.DCAP_CREATE
_gdalconst.DCAP_CREATECOPY_swigconstant(_gdalconst)
DCAP_CREATECOPY = _gdalconst.DCAP_CREATECOPY
_gdalconst.DCAP_VIRTUALIO_swigconstant(_gdalconst)
DCAP_VIRTUALIO = _gdalconst.DCAP_VIRTUALIO
_gdalconst.CPLES_BackslashQuotable_swigconstant(_gdalconst)
CPLES_BackslashQuotable = _gdalconst.CPLES_BackslashQuotable
_gdalconst.CPLES_XML_swigconstant(_gdalconst)
CPLES_XML = _gdalconst.CPLES_XML
_gdalconst.CPLES_URL_swigconstant(_gdalconst)
CPLES_URL = _gdalconst.CPLES_URL
_gdalconst.CPLES_SQL_swigconstant(_gdalconst)
CPLES_SQL = _gdalconst.CPLES_SQL
_gdalconst.CPLES_CSV_swigconstant(_gdalconst)
CPLES_CSV = _gdalconst.CPLES_CSV
_gdalconst.GFT_Integer_swigconstant(_gdalconst)
GFT_Integer = _gdalconst.GFT_Integer
_gdalconst.GFT_Real_swigconstant(_gdalconst)
GFT_Real = _gdalconst.GFT_Real
_gdalconst.GFT_String_swigconstant(_gdalconst)
GFT_String = _gdalconst.GFT_String
_gdalconst.GFU_Generic_swigconstant(_gdalconst)
GFU_Generic = _gdalconst.GFU_Generic
_gdalconst.GFU_PixelCount_swigconstant(_gdalconst)
GFU_PixelCount = _gdalconst.GFU_PixelCount
_gdalconst.GFU_Name_swigconstant(_gdalconst)
GFU_Name = _gdalconst.GFU_Name
_gdalconst.GFU_Min_swigconstant(_gdalconst)
GFU_Min = _gdalconst.GFU_Min
_gdalconst.GFU_Max_swigconstant(_gdalconst)
GFU_Max = _gdalconst.GFU_Max
_gdalconst.GFU_MinMax_swigconstant(_gdalconst)
GFU_MinMax = _gdalconst.GFU_MinMax
_gdalconst.GFU_Red_swigconstant(_gdalconst)
GFU_Red = _gdalconst.GFU_Red
_gdalconst.GFU_Green_swigconstant(_gdalconst)
GFU_Green = _gdalconst.GFU_Green
_gdalconst.GFU_Blue_swigconstant(_gdalconst)
GFU_Blue = _gdalconst.GFU_Blue
_gdalconst.GFU_Alpha_swigconstant(_gdalconst)
GFU_Alpha = _gdalconst.GFU_Alpha
_gdalconst.GFU_RedMin_swigconstant(_gdalconst)
GFU_RedMin = _gdalconst.GFU_RedMin
_gdalconst.GFU_GreenMin_swigconstant(_gdalconst)
GFU_GreenMin = _gdalconst.GFU_GreenMin
_gdalconst.GFU_BlueMin_swigconstant(_gdalconst)
GFU_BlueMin = _gdalconst.GFU_BlueMin
_gdalconst.GFU_AlphaMin_swigconstant(_gdalconst)
GFU_AlphaMin = _gdalconst.GFU_AlphaMin
_gdalconst.GFU_RedMax_swigconstant(_gdalconst)
GFU_RedMax = _gdalconst.GFU_RedMax
_gdalconst.GFU_GreenMax_swigconstant(_gdalconst)
GFU_GreenMax = _gdalconst.GFU_GreenMax
_gdalconst.GFU_BlueMax_swigconstant(_gdalconst)
GFU_BlueMax = _gdalconst.GFU_BlueMax
_gdalconst.GFU_AlphaMax_swigconstant(_gdalconst)
GFU_AlphaMax = _gdalconst.GFU_AlphaMax
_gdalconst.GFU_MaxCount_swigconstant(_gdalconst)
GFU_MaxCount = _gdalconst.GFU_MaxCount
_gdalconst.GMF_ALL_VALID_swigconstant(_gdalconst)
GMF_ALL_VALID = _gdalconst.GMF_ALL_VALID
_gdalconst.GMF_PER_DATASET_swigconstant(_gdalconst)
GMF_PER_DATASET = _gdalconst.GMF_PER_DATASET
_gdalconst.GMF_ALPHA_swigconstant(_gdalconst)
GMF_ALPHA = _gdalconst.GMF_ALPHA
_gdalconst.GMF_NODATA_swigconstant(_gdalconst)
GMF_NODATA = _gdalconst.GMF_NODATA
_gdalconst.GARIO_PENDING_swigconstant(_gdalconst)
GARIO_PENDING = _gdalconst.GARIO_PENDING
_gdalconst.GARIO_UPDATE_swigconstant(_gdalconst)
GARIO_UPDATE = _gdalconst.GARIO_UPDATE
_gdalconst.GARIO_ERROR_swigconstant(_gdalconst)
GARIO_ERROR = _gdalconst.GARIO_ERROR
_gdalconst.GARIO_COMPLETE_swigconstant(_gdalconst)
GARIO_COMPLETE = _gdalconst.GARIO_COMPLETE
_gdalconst.GTO_TIP_swigconstant(_gdalconst)
GTO_TIP = _gdalconst.GTO_TIP
_gdalconst.GTO_BIT_swigconstant(_gdalconst)
GTO_BIT = _gdalconst.GTO_BIT
_gdalconst.GTO_BSQ_swigconstant(_gdalconst)
GTO_BSQ = _gdalconst.GTO_BSQ
# This file is compatible with both classic and new-style classes.
|