管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-03 bf2036e79b5e10f1d7c157ff4c114ca0689e8524
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from qgis.core import *
 
# Supply path to qgis install location
QgsApplication.setPrefixPath("/path/to/qgis/installation", True)
 
# Create a reference to the QgsApplication.  Setting the
# second argument to False disables the GUI.
qgs = QgsApplication([], True)
 
# Load providers
qgs.initQgis()
 
# Write your code here to load some layers, use processing
# algorithms, etc.
 
# Finally, exitQgis() is called to remove the
# provider and layer registries from memory
qgs.exitQgis()