-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstartup.py
More file actions
39 lines (23 loc) · 898 Bytes
/
startup.py
File metadata and controls
39 lines (23 loc) · 898 Bytes
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
from qgis.core import QgsFeature, QgsPoint, QgsGeometry, QgsProject, QgsField, QgsVectorLayer
from PyQt5.QtWidgets import QApplication, QFileDialog, QFormLayout, QLabel, QLineEdit, QWidget, QDialog, QPushButton, QVBoxLayout, QTextBrowser, QGroupBox, QGridLayout, QCheckBox, QAction
from PyQt5.QtCore import QVariant, QRect, Qt
from PyQt5.QtGui import *
import pandas as pd
from datetime import datetime as dt
import os
from qgis.utils import iface, Qgis
from qgis.core import QgsWkbTypes
''' Append PATH in QGIS settings to import local script
or
import sys
sys.path.append(<path to survey file folder>)
'''
from survey_script import ScriptWindow
window = ScriptWindow()
def survey():
window.show()
iface.messageBar().pushMessage('Survey Script Loaded')
action = QAction('Survey')
action.triggered.connect(survey)
#action.setIcon(QIcon(icon))
iface.addToolBarIcon(action)