文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 7176ae60 by ren

增加模板文件

parent b41c039a
...@@ -69,8 +69,8 @@ def retGeoNames(relationId): ...@@ -69,8 +69,8 @@ def retGeoNames(relationId):
{"name": "河流水系3级", "url": '1604321548.shp'}, # 河3 {"name": "河流水系3级", "url": '1604321548.shp'}, # 河3
{"name": "河流水系4级", "url": '1604321993.shp'}, # 河4 {"name": "河流水系4级", "url": '1604321993.shp'}, # 河4
# {"name": "河流水系5级", "url": '1604322005.shp'}, #河5,文件太大,全部叠加后前端无法显示 # {"name": "河流水系5级", "url": '1604322005.shp'}, #河5,文件太大,全部叠加后前端无法显示
# {"name": "活动断裂分布", "url": '1604042749.shp'}, # 活动断裂 {"name": "活动断裂分布", "url": '1604042749.shp'}, # 活动断裂
# {"name": "全国降雨量站降雨数据", "url": '1604042339.shp'}, # 降雨量 {"name": "全国降雨量站降雨数据", "url": '1604042339.shp'}, # 降雨量
] ]
allList = [] allList = []
isExtended = False isExtended = False
...@@ -109,11 +109,9 @@ def retGeoJson(all_list, index): ...@@ -109,11 +109,9 @@ def retGeoJson(all_list, index):
# 获取图层 # 获取图层
@image.route("/layer/getGeojson", methods=["POST"]) @image.route("/layer/getGeojson", methods=["POST"])
def get_geo_list(): def get_geo_list():
print("get_geo_list")
data = json.loads(request.data.decode('utf-8')) data = json.loads(request.data.decode('utf-8'))
relation_list = data['relationId'] relation_list = data['relationId']
index = data['index'] index = data['index']
print(relation_list, index)
urlList = Image.retURLList(relation_list) urlList = Image.retURLList(relation_list)
geoList = None geoList = None
defaultList = [ defaultList = [
...@@ -135,7 +133,6 @@ def get_geo_list(): ...@@ -135,7 +133,6 @@ def get_geo_list():
allList.extend(defaultList) allList.extend(defaultList)
allList.extend(urlList) allList.extend(urlList)
geojson = retGeoJson(allList, index) geojson = retGeoJson(allList, index)
print("geojson")
return geojson return geojson
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment