diff --git a/.gitignore b/.gitignore index d78f63b0..5b3a2308 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ Tiles/ **/*.bak **/*.swp .last_gui_params.txt +z_Python_Venv diff --git a/Providers/Global/EOX2-2021.lay b/Providers/Global/EOX2-2021.lay new file mode 100644 index 00000000..821e88fa --- /dev/null +++ b/Providers/Global/EOX2-2021.lay @@ -0,0 +1,5 @@ +request_type=tms +grid_type=webmercator +url_template=https://{switch:a,b,c,d}.s2maps-tiles.eu/wmts/?layer=s2cloudless-2021_3857&style=default&tilematrixset=GoogleMapsCompatible&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fjpeg&TileMatrix={zoom}&TileCol={x}&TileRow={y} +max_zl=14 +imagery_dir=grouped diff --git a/requirements_nover.txt b/requirements_nover.txt new file mode 100644 index 00000000..20a4a6f2 --- /dev/null +++ b/requirements_nover.txt @@ -0,0 +1,12 @@ +certifi +chardet +idna +numpy +Pillow +pyproj +requests +Rtree +Shapely +urllib3 +build +scikit-fmm diff --git a/z_Install_Python_Venv.sh b/z_Install_Python_Venv.sh new file mode 100755 index 00000000..910b48b9 --- /dev/null +++ b/z_Install_Python_Venv.sh @@ -0,0 +1,31 @@ +#! /bin/bash + +path="$PWD/z_Python_Venv" + +# 1. Create a Python virtual environment + +python -m venv $path + +# 2. Activate Python venv + +source $path/bin/activate + +# 3. Install packages with pip + +pip install -r $PWD/requirements_nover.txt + +# 4. DONE + +echo " " +echo "Preparation complete!" +echo " " +echo "Use \"$path/bin/python $PWD/Ortho4XP\" to start O4XP" +echo " " +echo " " + +# Function: Pause +function pause(){ + read -p "$*" +} + +pause "Press enter to continue... " diff --git a/z_Start_O4XP_PythonVenv.sh b/z_Start_O4XP_PythonVenv.sh new file mode 100755 index 00000000..c19bc9e6 --- /dev/null +++ b/z_Start_O4XP_PythonVenv.sh @@ -0,0 +1,5 @@ +#! /bin/bash + +path="$PWD/z_Python_Venv" + +$path/bin/python $PWD/Ortho4XP.py