Exemplo n.º 1
0
    def upload(self):
        dlg = CartoDBPluginUpload(self.iface, self.toolbar)
        def addLayer(fileName, tableName):
            newLayer = CartoDBLayer(self.iface, tableName, dlg.currentUser, dlg.currentApiKey,
                             dlg.currentUser, None, spatiaLite=fileName, multiuser=dlg.currentMultiuser)
            QgsMapLayerRegistry.instance().addMapLayer(newLayer)
            self.layers.append(newLayer)

        dlg.addedLayer.connect(addLayer)
        dlg.show()
        dlg.exec_()
Exemplo n.º 2
0
    def upload(self):
        dlg = CartoDBPluginUpload(self.iface, self.toolbar)

        def addLayer(fileName, tableName):
            newLayer = CartoDBLayer(self.iface,
                                    tableName,
                                    dlg.currentUser,
                                    dlg.currentApiKey,
                                    dlg.currentUser,
                                    None,
                                    spatiaLite=fileName,
                                    multiuser=dlg.currentMultiuser)
            QgsMapLayerRegistry.instance().addMapLayer(newLayer)
            self.layers.append(newLayer)

        dlg.addedLayer.connect(addLayer)
        dlg.show()
        dlg.exec_()
Exemplo n.º 3
0
    def upload(self):
        dlg = CartoDBPluginUpload(self.toolbar)
        dlg.show()

        result = dlg.exec_()
Exemplo n.º 4
0
    def upload(self):
        dlg = CartoDBPluginUpload(self.toolbar)
        dlg.show()

        result = dlg.exec_()