From 61fc162c292189ffdf2982a259f0351eb1407ec9 Mon Sep 17 00:00:00 2001 From: Sara <sarasdj@stud.ntnu.no> Date: Thu, 14 Mar 2024 12:38:57 +0100 Subject: [PATCH] upate: README --- README.md | 22 ++++++++++++++++++++++ server/lake_relations/overpass_query.txt | 8 -------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b033a304..9eda7ed8 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,28 @@ Precompiled binaries can be found on https://www.sqlite.org/download.html. Extra binary in a folder and note its path. Add the path to your system environment variables. Now you can manage the SQLite database. +## Adding new maps +The current server only contains the data for a single lake, Mjøsa. To add more lakes +go to https://overpass-turbo.eu/. Once you have navigated to Overpass API, enter +the Overpass query below in the left field, but swap 'lakeName' out +with the name of the lake you want to add. Once the query has been adjusted, +press the 'Run' button. + +``` +[out:json]; +( + way["natural"="water"]["name"="lakeName"]; + relation["natural"="water"]["name"="lakeName"]; +); +(._;>;); +out body; +``` +If a text box saying "This query returned quite a lot of data (approx. x MB). Your browser may have a hard time trying to render this. Do you really want to continue? +" appears, press 'continue anyway'. 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... + ## Endpoints ## Bugs diff --git a/server/lake_relations/overpass_query.txt b/server/lake_relations/overpass_query.txt index 4d011e20..1539aa95 100644 --- a/server/lake_relations/overpass_query.txt +++ b/server/lake_relations/overpass_query.txt @@ -1,11 +1,3 @@ -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"]; -- GitLab