管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-03-10 318eb56010c6e638a96aed3d09fa75d418e8f4ee
1
已修改1个文件
5 ■■■■ 文件已修改
ExportMap/Sources/xyz.py 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/Sources/xyz.py
@@ -69,6 +69,7 @@
        prj.addMapLayer(layer)
# 边界类
class Rectangle:
    def __init__(self, xmin, xmax, ymin, ymax):
@@ -76,6 +77,7 @@
        self.xmax = xmax
        self.ymin = ymin
        self.ymax = ymax
# 获取边界
def getExtent(prj):
@@ -98,6 +100,7 @@
    # '38399769,38403264,3558330,3561632'
    return str(ex.xmin) + "," + str(ex.xmax) + "," + str(ex.ymin) + "," + str(ex.ymax)
# 初始化
def init():
@@ -131,7 +134,7 @@
        'ZOOM_MIN': 4
    }
    print(ops)
    #processing.run("qgis:tilesxyzdirectory", ops)
    processing.run("qgis:tilesxyzdirectory", ops)
    qgs.exitQgis()