diff --git a/luchtfoto/imagery-2024-0.dbf b/luchtfoto/imagery-2024-0.dbf index 94a46c37..b57468cd 100644 Binary files a/luchtfoto/imagery-2024-0.dbf and b/luchtfoto/imagery-2024-0.dbf differ diff --git a/luchtfoto/imagery-2024-1.dbf b/luchtfoto/imagery-2024-1.dbf index 90d2d632..e9846374 100644 Binary files a/luchtfoto/imagery-2024-1.dbf and b/luchtfoto/imagery-2024-1.dbf differ diff --git a/luchtfoto/imagery-2024-2.dbf b/luchtfoto/imagery-2024-2.dbf index 76abcaf4..54ffb506 100644 Binary files a/luchtfoto/imagery-2024-2.dbf and b/luchtfoto/imagery-2024-2.dbf differ diff --git a/luchtfoto/imagery-2024-3.dbf b/luchtfoto/imagery-2024-3.dbf index 1175cbd8..2116052d 100644 Binary files a/luchtfoto/imagery-2024-3.dbf and b/luchtfoto/imagery-2024-3.dbf differ diff --git a/luchtfoto/imagery-2024-4.dbf b/luchtfoto/imagery-2024-4.dbf index 8cf0ae86..197b8cc9 100644 Binary files a/luchtfoto/imagery-2024-4.dbf and b/luchtfoto/imagery-2024-4.dbf differ diff --git a/luchtfoto/imagery-2024-5.dbf b/luchtfoto/imagery-2024-5.dbf index 1c821d9c..52062cec 100644 Binary files a/luchtfoto/imagery-2024-5.dbf and b/luchtfoto/imagery-2024-5.dbf differ diff --git a/tools/lufo_shapes_newurl.sh b/tools/lufo_shapes_newurl.sh index caf6f84c..67945022 100755 --- a/tools/lufo_shapes_newurl.sh +++ b/tools/lufo_shapes_newurl.sh @@ -28,7 +28,12 @@ YEAR="2024" for j in $YEAR; do for i in $LEVELS; do - ogrinfo -dialect SQLITE -sql "UPDATE 'imagery-$j-$i' SET location = '/vsicurl/https://stlandingdpgoontweu01.blob.core.windows.net.' || SUBSTR(location, 18)" $SHAPEDIR/imagery-$j-$i.shp + # Extract only the filename after the last '/' and prepend new URL + ogrinfo -dialect SQLITE -sql " + UPDATE 'imagery-$j-$i' + SET location = 'https://basemaptilingappdatapi.blob.core.windows.net/tiles/luchtfoto/$j/pyramid/$i/' || + substr(location, instr(location, 'overview')) + " $SHAPEDIR/imagery-$j-$i.shp ogrinfo -sql "CREATE SPATIAL INDEX ON imagery-$j-$i" $SHAPEDIR/imagery-$j-$i.shp done done