Python osgeo.gdal.SetConfigOption() Examples

The following are code examples for showing how to use osgeo.gdal.SetConfigOption(). They are from open source Python projects. You can vote up the examples you like or vote down the ones you don't like.

Example 1
Project: gnm_qgis   Author: nextgis   File: gnm_manager.py    GNU General Public License v2.0 6 votes vote down vote up
def onRemoveNetworkClicked(self):
        #gdal.SetConfigOption('CPL_DEBUG','ON')
        #gdal.SetConfigOption('CPL_LOG','D:/nextgis/gnmmanager/gdal_log.txt')
        #gdal.SetConfigOption('CPL_LOG_ERRORS','ON')
        self.dlg_remove.show() 
        result = self.dlg_remove.my_exec_()
        if result == 1:
            self.NETWORK_DS = None
            ok_to_del = self.dlg_remove.FULLY_DELETE
            if ok_to_del:
# TODO: really pass here the selected GNM format:           
                gdal.GetDriverByName('GNMFile').Delete(str(self.NETWORK_FULLPATH))
            self.clickFlagButton(self.PRESSED_TOOLB,None) # unpress any pressed flag button and unset map tool
            self.removeGnmLayersGroup()
            self.enableMenusForNetwork(False)
            self.updateLayersToSearchForFlags()                
            self.NETWORK_FULLPATH = ''
            self.NETWORK_NAME = ''
            self.GFID_STARTFLAG = -1
            self.GFID_ENDFLAG = -1
            self.GFIDS_BLOCKFLAGS = []