inital commit
This commit is contained in:
17
tools/createtiles.sh
Executable file
17
tools/createtiles.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# do NOT forget to install `python-gdal` library
|
||||
# assuming you are on a debian like OS
|
||||
#sudo apt install python-gdal
|
||||
|
||||
# get the tool
|
||||
test ! -f gdal2tiles.py \
|
||||
&& curl https://raw.githubusercontent.com/commenthol/gdal2tiles-leaflet/master/gdal2tiles.py \
|
||||
> gdal2tiles.py \
|
||||
&& echo "'python-gdal' library required - please install"
|
||||
|
||||
# process ...
|
||||
export GDAL_ALLOW_LARGE_LIBJPEG_MEM_ALLOC=1
|
||||
python3 ./gdal2tiles.py -l -p raster -z 0-4 -w none 20230330_143536.jpg tiles
|
||||
|
||||
echo 'Now open "index.html" in your browser.'
|
||||
Reference in New Issue
Block a user