gsdview.gdalbackend.gdalsupport

Support tools and classes for the GDAL library.

Functions

GDALTypeCodeToNumericTypeCode(gdal_code)
available_ovr_levels(band)
best_ovr_index(band[, ovrlevel, policy]) Return the best available overview index for the ovrlevel desired.
centralcoor(dataset_fname)
check_tiff_bug()
checkmapper(mapper)
compute_ovr_level(band[, ovrsize]) Compute the overview factor that fits the ovrsize request.
coordinate_mapper(dataset[, precise])
datums_dict() Return a dict of most significant datums in proj.4 format
default_env_var(var_name)
formatErrorMsg([errno, etypecode, msg])
gdalFilters([readwrite]) Return a list useful in file filters for gdal
gdalOvLevelAdjust(ovrlevel, xsize) Adjust the overview level
gdal_datatypes()
gdal_informats() Build dictionary with all input extensions supported by GDAL
gdal_outformats() Build dictionary with all output extensions supported by GDAL
getDriverList()
getutmzone(cenlon) Return utm zone.
has_complex_bands(dataset)
iscomplex(band)
isinsouth(cenlat) Return ‘True’ if latitude correspond to south hemisphere, ‘False’
issubdataset(fname)
projections_dict() Return a dict of most significant projections in proj.4 format
quotefilename(fname) Add double quotes only at the begin and end of filename, supporting
splitsubdataset(fullname) Split a subdataset in 3 parts: driver, filename, subdataset.
uniqueDatasetID(prod)

Exceptions

GdalOpenError(*args)
MissingOvrError(ovrlevel)
exception gsdview.gdalbackend.gdalsupport.GdalOpenError(*args)
exception gsdview.gdalbackend.gdalsupport.MissingOvrError(ovrlevel)
gsdview.gdalbackend.gdalsupport.available_ovr_levels(band)
gsdview.gdalbackend.gdalsupport.best_ovr_index(band, ovrlevel=None, policy='NEAREST')

Return the best available overview index for the ovrlevel desired.

Policy values can be:

  • NEAREST –> index of the nearest overview level

  • GREATER –> index of the nearest overview level greater or equal

    to “ovrlevel”

  • SMALLER –> index of the nearest overview level smaller or equal

    to “ovrlevel”

gsdview.gdalbackend.gdalsupport.centralcoor(dataset_fname)
gsdview.gdalbackend.gdalsupport.check_tiff_bug()
gsdview.gdalbackend.gdalsupport.checkmapper(mapper)
gsdview.gdalbackend.gdalsupport.compute_ovr_level(band, ovrsize=102400)
Compute the overview factor that fits the ovrsize request.
gsdview.gdalbackend.gdalsupport.coordinate_mapper(dataset, precise=False)
gsdview.gdalbackend.gdalsupport.datums_dict()
Return a dict of most significant datums in proj.4 format
gsdview.gdalbackend.gdalsupport.default_env_var(var_name)
gsdview.gdalbackend.gdalsupport.formatErrorMsg(errno=None, etypecode=None, msg=None)
gsdview.gdalbackend.gdalsupport.gdalFilters(readwrite=False)

Return a list useful in file filters for gdal

Parameters :
  • ‘readwrite’: a flag indicated if only RW supported files are handled
gsdview.gdalbackend.gdalsupport.gdalOvLevelAdjust(ovrlevel, xsize)

Adjust the overview level

Replicate the GDALOvLevelAdjust function from gdal-1.4.4/gcore/gdaldefaultoverviews.cpp

gsdview.gdalbackend.gdalsupport.gdal_datatypes()
gsdview.gdalbackend.gdalsupport.gdal_informats()
Build dictionary with all input extensions supported by GDAL
gsdview.gdalbackend.gdalsupport.gdal_outformats()
Build dictionary with all output extensions supported by GDAL
gsdview.gdalbackend.gdalsupport.getDriverList()
gsdview.gdalbackend.gdalsupport.getutmzone(cenlon)

Return utm zone.

Return utm zone corresponding to longitude, None if zone calculated was incorrect.

gsdview.gdalbackend.gdalsupport.has_complex_bands(dataset)
gsdview.gdalbackend.gdalsupport.iscomplex(band)
gsdview.gdalbackend.gdalsupport.isinsouth(cenlat)
Return ‘True’ if latitude correspond to south hemisphere, ‘False’ elsewhere.
gsdview.gdalbackend.gdalsupport.issubdataset(fname)
gsdview.gdalbackend.gdalsupport.projections_dict()
Return a dict of most significant projections in proj.4 format
gsdview.gdalbackend.gdalsupport.quotefilename(fname)
Add double quotes only at the begin and end of filename, supporting input in “driver:filename://subdatasets” form too
gsdview.gdalbackend.gdalsupport.splitsubdataset(fullname)

Split a subdataset in 3 parts: driver, filename, subdataset.

If filename is in “driver:filename://subdatasets” form split it in 3 parts, else return input without any modifications.

gsdview.gdalbackend.gdalsupport.uniqueDatasetID(prod)

Previous topic

gsdview.gdalbackend.gdalqt4

Next topic

gsdview.gdalbackend.info

This Page