diff --git a/README.md b/README.md index b033a30410705a742f4498310bac635e1bce73c6..9eda7ed84ee9fa60b2a95ea27f3e64945c77bddc 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 4d011e2037b088d1bd4259f5ca7630fcf3318f13..1539aa9503a5f52bac64f8c81ad5584880c51a38 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"];