Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DA-Platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
文档服务地址:
http://47.92.0.57:3000/
周报索引地址:
http://47.92.0.57:3000/s/NruNXRYmV
Open sidebar
Berlin
DA-Platform
Commits
7176ae60
Commit
7176ae60
authored
Nov 22, 2020
by
ren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加模板文件
parent
b41c039a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
imageAnnotation.py
DAPlatform/views/imageAnnotation.py
+2
-5
No files found.
DAPlatform/views/imageAnnotation.py
View file @
7176ae60
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment