2023-06-18 17:23:07 +02:00
|
|
|
#!/bin/bash
|
|
|
|
# ---------------------------------------------------------------------------------------------
|
|
|
|
# envoi de plusieurs dossiers de photos (exportés de mapillary) vers panoramax
|
|
|
|
# fonctionne avec un dossier contenant les dossiers de photos de mapillary
|
|
|
|
# déplace les dossiers importés dans un autre afin d'effectuer un suivi progresssif
|
|
|
|
#
|
|
|
|
# ---------------- usage:
|
|
|
|
# changez les variables suivantes, puis lancez la commande bash:
|
|
|
|
#
|
|
|
|
# bash panoramax_bash_send.sh
|
|
|
|
#
|
|
|
|
# ---------------------------- made by tykayn www.cipherbliss.com -----------------------------
|
|
|
|
|
2023-08-14 12:22:05 +02:00
|
|
|
containing_mapillary_folders="/home/poule/encrypted/stockage-syncable/photos/imagerie kartaview carto tel/mapillary"
|
|
|
|
done_mapillary_folders="/home/poule/encrypted/stockage-syncable/photos/imagerie kartaview carto tel/already_sent_to_panoramax_osm_fr"
|
2023-06-18 17:23:07 +02:00
|
|
|
panoramax_instance="https://panoramax.openstreetmap.fr"
|
|
|
|
|
|
|
|
function import_mapillary_folders_and_move_in_imported_folder() {
|
|
|
|
echo 'change directory to' $containing_mapillary_folders
|
|
|
|
|
|
|
|
cd $containing_mapillary_folders
|
|
|
|
echo "dossiers à envoyer: "
|
|
|
|
ls -l |wc -l
|
|
|
|
echo " "
|
|
|
|
# loop in containing folder
|
|
|
|
for f in *; do
|
|
|
|
echo "envoi du dossier" "$containing_mapillary_folders/$f"
|
|
|
|
geovisio upload --api-url $panoramax_instance "$containing_mapillary_folders/$f"
|
2023-08-14 12:22:05 +02:00
|
|
|
# mv "$containing_mapillary_folders/$f" "$done_mapillary_folders"
|
2023-06-18 17:23:07 +02:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
import_mapillary_folders_and_move_in_imported_folder
|