forked from zsiki/bulkvectorexport
-
Notifications
You must be signed in to change notification settings - Fork 3
/
bulkvectorexportdialog.py
43 lines (38 loc) · 1.85 KB
/
bulkvectorexportdialog.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- coding: utf-8 -*-
"""
/***************************************************************************
BulkVectorExportDialog
A QGIS plugin
Export map contents to specified format and CRS
-------------------
begin : 2013-01-21
copyright : (C) 2013 by ViaMap Ltd.
email : info@viamap.hu
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
"""
from builtins import str
from qgis.PyQt import QtCore, QtGui, QtWidgets
from .ui_bulkvectorexport import Ui_BulkVectorExportDialog
from osgeo import ogr
# create the dialog for zoom to point
class BulkVectorExportDialog(QtWidgets.QDialog):
def __init__(self):
QtWidgets.QDialog.__init__(self)
# Set up the user interface from Designer.
self.ui = Ui_BulkVectorExportDialog()
self.ui.setupUi(self)
# dir button push event
self.ui.dirButton.clicked.connect(self.getDir)
self.unsupportedDriverList = ['Memory', 'PostgreSQL', 'MySQL', 'ODBC', \
'S57']
def getDir(self):
dirName = str(QtWidgets.QFileDialog.getExistingDirectory(self, "Select Directory"))
self.ui.dirEdit.setText(dirName)