Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROG2900
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sara Savanovic Djordjevic
PROG2900
Commits
d4453186
Commit
d4453186
authored
1 year ago
by
Sara Savanovic Djordjevic
Browse files
Options
Downloads
Patches
Plain Diff
update: overpass query instructions
parent
2e6fdfe4
No related branches found
Branches containing commit
No related tags found
1 merge request
!6
Clhp map
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
server/lake_relations/overpass_query.txt
+15
-1
15 additions, 1 deletion
server/lake_relations/overpass_query.txt
server/map/get_relation.py
+1
-1
1 addition, 1 deletion
server/map/get_relation.py
with
16 additions
and
2 deletions
server/lake_relations/overpass_query.txt
+
15
−
1
View file @
d4453186
The following query
\ No newline at end of file
The following query is used to retrieve the relation(shape) of a lake.
Go to https://overpass-turbo.eu/#, enter the query in the left field, add
the name of the lake you want to add, and press 'run'.
If a text box saying "" appears, press 'continue anyways'. Double check that you have
the correct lake, then press 'Export'. In the 'Export' menu, download the shape data as
GeoJson. Once downloaded, name the file the *lakeName.json, and move the file into
IceMap/server/lake_relations. Once you have added the file, run map division...
[out:json];
(
way["natural"="water"]["name"="lakeName"];
relation["natural"="water"]["name"="lakeName"];
);
(._;>;);
out body;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
server/map/get_relation.py
+
1
−
1
View file @
d4453186
...
...
@@ -104,7 +104,7 @@ def write_json_to_file(path: str, file_name: str, json_data: dict):
if
not
os
.
path
.
exists
(
path
):
raise
Exception
(
"
Directory from path does not exist
"
)
with
open
(
path
+
'
/
'
+
file_name
,
'
w
'
)
as
f
:
with
open
(
path
+
'
/
'
+
file_name
+
'
_div.json
'
,
'
w
'
)
as
f
:
json
.
dump
(
json_data
,
f
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment