From: Andrew Lorimer Date: Mon, 24 Nov 2025 09:31:13 +0000 (+1100) Subject: update vicmap-montage for VICGRID 2020 (EPSG7899) X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/46185042c5658be5446db762ab7b89e473da6fc3 update vicmap-montage for VICGRID 2020 (EPSG7899) --- diff --git a/vicmap-montage.sh b/vicmap-montage.sh index 12b760b..a084f1a 100755 --- a/vicmap-montage.sh +++ b/vicmap-montage.sh @@ -36,7 +36,7 @@ usagelong="\e[1mUSAGE:\e[0m Default: vicmap.png Inspect Element on map, then find the
with the satellite images (element - id typically OpenLayers_Layer_XYZ_8). The second last number in each image + id typically OpenLayers_Layer_XYZ_*). The second last number in each image URL corresponds to the longitude (E-W) and the last number corresponds to the latitude (N-S). Find the maximum latitude and longitude in the range shown.\n" @@ -69,7 +69,9 @@ for ((i=$longmin; i<=$longmax; i++)); do mkdir -p $i # Iterate through latitudes (individual tiles N to S) for ((j=$latmin; j<=$latmax; j++)); do - curl -s -C - https://base.maps.vic.gov.au/wmts/AERIAL_WM/EPSG:3857/$zoom/$i/$j.png -o $i/$j.png + #curl -s -C - https://base.maps.vic.gov.au/wmts/AERIAL_VG/EPSG:3111/$zoom/$i/$j.png -o $i/$j.png + #curl -s -C - https://base.maps.vic.gov.au/wmts/AERIAL_WM/EPSG:3857/$zoom/$i/$j.png -o $i/$j.png + curl -C - https://base.maps.vic.gov.au/wmts/AERIAL_VG2020/EPSG:7899/$zoom/$i/$j.png -o $i/$j.png done montage $i/* -tile 1x"$y" -geometry +0+0 $i.png done