I am trying to move my plugin from QGIS 1.8 to QGIS2.0. However, the gdal module cannot use under QGIS2.0.
I try to use Python console, typing:
import gdal #it's OK
gdal.GetDriverByName( 'GTiff' ) # dosen't work, got an AttributeError
But the 'smart spelling' give 'GetDriverByName' attribute.(and has 'two'?! one for method and another one for attribute?? )
I also typing:
dir(gdal)
But No these methods or attributes found
What can I do?? Please help me.