def runImport(self):
     '''
     Import a GeoJSON file
     '''
     
     self.dlg = ImportShpDialog(self.filename)
     if self.dlg.valid:
         self.dlg.show()
 def runImport(self):
     '''
     Import a SHP file
     '''
     
     self.dlg = ImportShpDialog(self.filename)
     if self.dlg.valid:
         self.dlg.show()
class ImportSHP(object):
    '''
    Main class for the import data widget
    '''
    def __init__(self, filename):
        '''
        Constructor
        
        :param filename: The SHP filename
        :type filename: str, QString
        '''
        self.filename = filename

    def runImport(self):
        '''
        Import a SHP file
        '''

        self.dlg = ImportShpDialog(self.filename)
        if self.dlg.valid:
            self.dlg.show()
class ImportSHP(object):
    '''
    Main class for the import data widget
    '''
    
    def __init__(self, filename):
        '''
        Constructor
        
        :param filename: The SHP filename
        :type filename: str, QString
        '''
        self.filename = filename
    
    def runImport(self):
        '''
        Import a SHP file
        '''
        
        self.dlg = ImportShpDialog(self.filename)
        if self.dlg.valid:
            self.dlg.show()