update vicmap-montage for VICGRID 2020 (EPSG7899)
authorAndrew Lorimer <andrew@lorimer.id.au>
Mon, 24 Nov 2025 09:31:13 +0000 (20:31 +1100)
committerAndrew Lorimer <andrew@lorimer.id.au>
Mon, 24 Nov 2025 09:31:13 +0000 (20:31 +1100)
vicmap-montage.sh
index 12b760b04aec19d67f26d546e03d37d6f33dd664..a084f1a028b36dd1c72a3ffcb4e3a4535aab7424 100755 (executable)
@@ -36,7 +36,7 @@ usagelong="\e[1mUSAGE:\e[0m
     Default: vicmap.png
  
   Inspect Element on map, then find the <div> 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