bash pour importer textures satellites dans fligthgear

Ami age Membre non connecté
-
- Voir le profil du membre Ami age
- Inscrit le : 18/08/2012
- Site internet
- Groupes :
-
Modérateur
Reprise du message précédent
gérard-II, il y a des lignes vides vides dans mon script qui décale les numéro de ligne,puis j'ai lancé un script juste avec l'effacage de png, (j'avais mis en rouge la ligne en erreur et le code pour mettre en rouge s'est mélangé dans le code, donc j'ai refait, tout ça pour dire ne tiens pas compte du numéro de ligne)
le nom tel_tuiles_fg_justeffacepng.sh" est celui d'un script test
_______________________________________________________________________

___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.



___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.

Ami age Membre non connecté
-
- Voir le profil du membre Ami age
- Inscrit le : 18/08/2012
- Site internet
- Groupes :
-
Modérateur
set -exo pipefail
Dès la 2e ligne du script
J'ai mis à jour le script en post 1 avec les dernières consignes de Jybz. merci.
[s@localhost flightgear-photoscenery (master)]$ sh tel_tuiles_fg_effacepng.sh
++ readlink -f tel_tuiles_fg_effacepng.sh
+ currentScript=/home/s/Jeux/fgc/sources/flightgear-photoscenery/tel_tuiles_fg_effacepng.sh
+ scriptDir=/home/s/Jeux/fgc/sources/flightgear-photoscenery
+ echo ''
+ echo ''
+ echo ''
+ echo '* ** *** **** ***** Téléchargement automatique des images satelittes pour FLIGHTGEAR ***** **** *** ** *'
* ** *** **** ***** Téléchargement automatique des images satelittes pour FLIGHTGEAR ***** **** *** ** *
+ echo ''
+ echo ''
+ echo ''
+ echo 'Ouvrir firefox à cette adresse https://scenery.flightgear.org/static/map/index.html'
Ouvrir firefox à cette adresse https://scenery.flightgear.org/static/map/index.html
+ echo ''
+ echo ''
+ echo 'Sélecionner la zone à couvrir en avec un clic droit avec get coordinate sur la carte pour relever le coin inférieur gauche '
Sélecionner la zone à couvrir en avec un clic droit avec get coordinate sur la carte pour relever le coin inférieur gauche
+ echo 'puis le coin supérieur droit'
puis le coin supérieur droit
+ echo ''
+ echo ''
+ echo 'Attention, le téléchargement peut-être long, limiter le nombre de tuiles à une dizaine dans un premier temps'
Attention, le téléchargement peut-être long, limiter le nombre de tuiles à une dizaine dans un premier temps
+ echo 'Si besoin, un CTRL+c interrompra ce script'
Si besoin, un CTRL+c interrompra ce script
+ echo ''
+ echo 'Entrer les coordonnées du coin inférieur gauche (Longitude et lattitude en même temps soit par exemple : 5.030708 44.012077)'
Entrer les coordonnées du coin inférieur gauche (Longitude et lattitude en même temps soit par exemple : 5.030708 44.012077)
+ read pointA
5.526123 43.133061
+ echo 'Entrer les coordonnées du coin supérieur droit (Longitude et lattitude en même temps soit par exemple : 5.488701 44.243969) :'
Entrer les coordonnées du coin supérieur droit (Longitude et lattitude en même temps soit par exemple : 5.488701 44.243969) :
+ read pointB
5.736923 43.232947
+ Long_coin_inf_gauche=5.526123
+ Lat_coin_inf_gauche=43.133061
+ Long_coin_sup_droit=5.736923
+ Lat_coin_sup_droit=43.232947
+ echo ''
+ echo 'Téléchargement en cours'
Téléchargement en cours
+ echo ''
+ ./create_bbox.pl --latLL 43.133061 --lonLL 5.526123 --latUR 43.232947 --lonUR 5.736923 -- --cols 2 --scenery_folder /home/s/Jeux/fgc/sources/flightgear-photoscenery
WARNING: Only do this for providers whose TOS allow this!
WARNING: This may really strain remote ressources and cost the provider
real $$$, so use with care and if in doubt, ask before using!
cmd=python3 creator.py --lat "43.1331" --lon "5.5261" --info_only
Tile 3039562 needs download
cmd=python3 creator.py --index 3039562 --cols 2 --scenery_folder /home/s/Jeux/fgc/sources/flightgear-photoscenery
INFO:root:'tile-4096x2048_5.50000000-43.12500000_5.62500000-43.18750000.png' already in cache, not downloading it again
INFO:root:'tile-4096x2048_5.62500000-43.12500000_5.75000000-43.18750000.png' already in cache, not downloading it again
INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_5.50000000-43.18750000_5.62500000-43.25000000.png.cm32nr_f from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=5.5,43.1875,5.625,43.25&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image
INFO:root:'tile-4096x2048_5.50000000-43.18750000_5.62500000-43.25000000.png' successfully fetched
INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_5.62500000-43.18750000_5.75000000-43.25000000.png.rmooug7h from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=5.625,43.1875,5.75,43.25&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image
INFO:root:'tile-4096x2048_5.62500000-43.18750000_5.75000000-43.25000000.png' successfully fetched
INFO:root:Joining tiles to /home/s/Jeux/fgc/sources/flightgear-photoscenery/Orthophotos/e000n40/e005n43/3039562.png
Bucket: {'min_lat': 43.125, 'max_lat': 43.25, 'min_lon': 5.5, 'max_lon': 5.75, 'center_lat': 43.1875, 'center_lon': 5.625}. Index: 3039562
cmd=python3 creator.py --lat "43.1331" --lon "5.5761" --info_only
cmd=python3 creator.py --lat "43.1331" --lon "5.6261" --info_only
cmd=python3 creator.py --lat "43.1331" --lon "5.6761" --info_only
cmd=python3 creator.py --lat "43.1331" --lon "5.7261" --info_only
cmd=python3 creator.py --lat "43.1831" --lon "5.5261" --info_only
cmd=python3 creator.py --lat "43.1831" --lon "5.5761" --info_only
cmd=python3 creator.py --lat "43.1831" --lon "5.6261" --info_only
cmd=python3 creator.py --lat "43.1831" --lon "5.6761" --info_only
cmd=python3 creator.py --lat "43.1831" --lon "5.7261" --info_only
all done.
+ echo ''
+ echo 'Conversion en cours'
Conversion en cours
+ echo ''
+ find . -name '*.png'
+ IFS=
+ read file
++ dirname ./Orthophotos/e000n40/e005n43/3039577.png
+ dir=./Orthophotos/e000n40/e005n43
++ basename ./Orthophotos/e000n40/e005n43/3039577.png .png
+ name=3039577
+ echo -n './Orthophotos/e000n40/e005n43/3039577.png: '
./Orthophotos/e000n40/e005n43/3039577.png: + '[' -f ./Orthophotos/e000n40/e005n43/3039577.dds ']'
+ echo 'dds already there'
dds already there
+ IFS=
+ read file
++ dirname ./Orthophotos/e000n40/e005n43/3039569.png
+ dir=./Orthophotos/e000n40/e005n43
++ basename ./Orthophotos/e000n40/e005n43/3039569.png .png
+ name=3039569
+ echo -n './Orthophotos/e000n40/e005n43/3039569.png: '
./Orthophotos/e000n40/e005n43/3039569.png: + '[' -f ./Orthophotos/e000n40/e005n43/3039569.dds ']'
+ echo 'dds already there'
dds already there
+ IFS=
+ read file
++ dirname ./Orthophotos/e000n40/e005n43/3039560.png
+ dir=./Orthophotos/e000n40/e005n43
++ basename ./Orthophotos/e000n40/e005n43/3039560.png .png
+ name=3039560
+ echo -n './Orthophotos/e000n40/e005n43/3039560.png: '
./Orthophotos/e000n40/e005n43/3039560.png: + '[' -f ./Orthophotos/e000n40/e005n43/3039560.dds ']'
+ echo 'dds already there'
dds already there
+ IFS=
+ read file
++ dirname ./Orthophotos/e000n40/e005n43/3039568.png
+ dir=./Orthophotos/e000n40/e005n43
++ basename ./Orthophotos/e000n40/e005n43/3039568.png .png
+ name=3039568
+ echo -n './Orthophotos/e000n40/e005n43/3039568.png: '
./Orthophotos/e000n40/e005n43/3039568.png: + '[' -f ./Orthophotos/e000n40/e005n43/3039568.dds ']'
+ echo 'dds already there'
dds already there
+ IFS=
+ read file
++ dirname ./Orthophotos/e000n40/e005n43/3039552.png
+ dir=./Orthophotos/e000n40/e005n43
++ basename ./Orthophotos/e000n40/e005n43/3039552.png .png
+ name=3039552
+ echo -n './Orthophotos/e000n40/e005n43/3039552.png: '
./Orthophotos/e000n40/e005n43/3039552.png: + '[' -f ./Orthophotos/e000n40/e005n43/3039552.dds ']'
+ echo 'dds already there'
dds already there
+ IFS=
+ read file
++ dirname ./Orthophotos/e000n40/e005n43/3039562.png
+ dir=./Orthophotos/e000n40/e005n43
++ basename ./Orthophotos/e000n40/e005n43/3039562.png .png
+ name=3039562
+ echo -n './Orthophotos/e000n40/e005n43/3039562.png: '
./Orthophotos/e000n40/e005n43/3039562.png: + '[' -f ./Orthophotos/e000n40/e005n43/3039562.dds ']'
+ echo 'convert to dds (dxt5:./Orthophotos/e000n40/e005n43/3039562.dds)'
convert to dds (dxt5:./Orthophotos/e000n40/e005n43/3039562.dds)
+ convert ./Orthophotos/e000n40/e005n43/3039562.png -define dds:compression=DXT5 dxt5:./Orthophotos/e000n40/e005n43/3039562.dds
+ IFS=
+ read file
++ dirname ./Orthophotos/e000n40/e005n43/3039578.png
+ dir=./Orthophotos/e000n40/e005n43
++ basename ./Orthophotos/e000n40/e005n43/3039578.png .png
+ name=3039578
+ echo -n './Orthophotos/e000n40/e005n43/3039578.png: '
./Orthophotos/e000n40/e005n43/3039578.png: + '[' -f ./Orthophotos/e000n40/e005n43/3039578.dds ']'
+ echo 'dds already there'
dds already there
+ IFS=
+ read file
++ dirname ./Orthophotos/e000n40/e005n43/3039576.png
+ dir=./Orthophotos/e000n40/e005n43
++ basename ./Orthophotos/e000n40/e005n43/3039576.png .png
+ name=3039576
+ echo -n './Orthophotos/e000n40/e005n43/3039576.png: '
./Orthophotos/e000n40/e005n43/3039576.png: + '[' -f ./Orthophotos/e000n40/e005n43/3039576.dds ']'
+ echo 'dds already there'
dds already there
+ IFS=
+ read file
++ dirname ./Orthophotos/e000n40/e005n43/3039553.png
+ dir=./Orthophotos/e000n40/e005n43
++ basename ./Orthophotos/e000n40/e005n43/3039553.png .png
+ name=3039553
+ echo -n './Orthophotos/e000n40/e005n43/3039553.png: '
./Orthophotos/e000n40/e005n43/3039553.png: + '[' -f ./Orthophotos/e000n40/e005n43/3039553.dds ']'
+ echo 'dds already there'
dds already there
+ IFS=
+ read file
++ dirname ./Orthophotos/e000n40/e005n43/3039554.png
+ dir=./Orthophotos/e000n40/e005n43
++ basename ./Orthophotos/e000n40/e005n43/3039554.png .png
+ name=3039554
+ echo -n './Orthophotos/e000n40/e005n43/3039554.png: '
./Orthophotos/e000n40/e005n43/3039554.png: + '[' -f ./Orthophotos/e000n40/e005n43/3039554.dds ']'
+ echo 'dds already there'
dds already there
+ IFS=
+ read file
++ dirname ./Orthophotos/e000n40/e005n43/3039570.png
+ dir=./Orthophotos/e000n40/e005n43
++ basename ./Orthophotos/e000n40/e005n43/3039570.png .png
+ name=3039570
+ echo -n './Orthophotos/e000n40/e005n43/3039570.png: '
./Orthophotos/e000n40/e005n43/3039570.png: + '[' -f ./Orthophotos/e000n40/e005n43/3039570.dds ']'
+ echo 'dds already there'
dds already there
+ IFS=
+ read file
++ dirname ./Orthophotos/e000n40/e005n43/3039561.png
+ dir=./Orthophotos/e000n40/e005n43
++ basename ./Orthophotos/e000n40/e005n43/3039561.png .png
+ name=3039561
+ echo -n './Orthophotos/e000n40/e005n43/3039561.png: '
./Orthophotos/e000n40/e005n43/3039561.png: + '[' -f ./Orthophotos/e000n40/e005n43/3039561.dds ']'
+ echo 'dds already there'
dds already there
+ IFS=
+ read file
+ echo ''
+ echo 'Suppression des images .png existantes'
Suppression des images .png existantes
tel_tuiles_fg_effacepng.sh: ligne 82: fin de fichier (EOF) prématurée lors de la recherche du « ' » correspondant
_______________________________________________________________________

___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.



___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron

chmod +x ./tel_tuiles_fg_effacepng.sh
Puis pour lancer, juste ./tel_tuiles_fg_effacepng.sh sans sh.
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Code BASH :
#!/bin/bash set -exo pipefail currentScript="$(readlink -f ${0})" scriptDir="${currentScript%/*}" echo -e "\n\n\n* ** *** **** ***** Téléchargement automatique des images satelittes pour FLIGHTGEAR ***** **** *** ** *\n\n\n" echo "Ouvrir firefox à cette adresse https://scenery.flightgear.org/static/map/index.html" echo -e "\n\n\nSélectionner la zone à couvrir en avec un clic droit avec get coordinate sur la carte pour relever le coin inférieur gauche puis le coin supérieur droit\n\n\n" echo -e "Attention, le téléchargement peut-être long, limiter le nombre de tuiles à une dizaine dans un premier temps" echo -e "Si besoin, un CTRL+c interrompra ce script" echo -e "\nEntrer les coordonnées du coin inférieur gauche (Longitude et lattitude en même temps soit par exemple : 5.030708 44.012077)" read pointA echo "Entrer les coordonnées du coin supérieur droit (Longitude et lattitude en même temps soit par exemple : 5.488701 44.243969) :" read pointB Long_coin_inf_gauche=${pointA% *} Lat_coin_inf_gauche=${pointA#* } Long_coin_sup_droit=${pointB% *} Lat_coin_sup_droit=${pointB#* } #Vous pouvez télécharger automatiquement une série de vignettes, plutôt qu'une à la fois, à l'aide du script create_bbox.pl . #Spécifiez le cadre de délimitation souhaité avec les options --latLL, --lonLL, --latUR et --lonUR, où #\"LL\" signifie coin inférieur gauche et #\"UR\" signifie coin supérieur droit. #Après ces options, ajoutez un --puis les options vers lesquelles passer creator.py. #telecharge les tuiles : echo -e "\nTéléchargement en cours\n" ./create_bbox.pl --latLL $Lat_coin_inf_gauche --lonLL $Long_coin_inf_gauche --latUR $Lat_coin_sup_droit --lonUR $Long_coin_sup_droit -- --cols 2 --scenery_folder /home/s/Jeux/fgc/sources/flightgear-photoscenery echo "\nConversion en cours png -> dds\n" find . -iname '*.png' -print0 | while IFS=\0 read file; do echo -n "${file}: " if [[ -f "${file%.*}.dds" ]] ; then echo "dds already there"; else echo "convert to dds (dxt5:${file%.*}.dds)" convert "${file}" -define dds:compression=DXT5 dxt5:${file%.*}.dds; fi; echo "Suppression de : ${file}" rm -f "${file}" done; echo -e "\n\nc'est terminé" exit ${?}
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

gerard-ll Membre non connecté
-
- Voir le profil du membre gerard-ll
- Inscrit le : 09/12/2011
- Groupes :
Jybz :Je fais des modifications, j'ai pas le temps de finir, j'éditerai petit à petit.
Il doit y avoir l'oubli d'un signe " dans le script de Ami age que je ne retrouve pas dans ton script Jybz.
Ça se voit sur cette copie d'écran du script de Ami age.
Au début le mot clé "echo" est de couleur violet et pas dans le milieu.
Est-ce que ce ne serait pas ça qui provoquerait une erreur?
Edit : Je n'ai pas testé les scripts
Édité par gerard-ll Le 20/01/2024 à 13h41
Pal mal Mageia!
@+
Gérard
@+
Gérard

gerard-ll Membre non connecté
-
- Voir le profil du membre gerard-ll
- Inscrit le : 09/12/2011
- Groupes :
Code TEXT :
echo "Ouvrir firefox à cette adresse <a class="offload" href="https://scenery.flightgear.org/static/map/index.html"">https://scenery.flightgear.org/static/map/index.html""</a>
J'ai rajouté un " à la fin de la ligne.

Pal mal Mageia!
@+
Gérard
@+
Gérard

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
gerard-ll :C'est sur cette ligne :
Code TEXT :echo "Ouvrir firefox à cette adresse <a class="offload" href="https://scenery.flightgear.org/static/map/index.html"">https://scenery.flightgear.org/static/map/index.html""</a>
J'ai rajouté un " à la fin de la ligne.
Non, ça c'est un lien ajouté sans balise code sur le forum.
Au départ c'est
echo "proto:/domaine/lien"
Une fois envoyé, phpboost converti
echo "<a href=proto:/domaine/lien">proto:/domaine/lien"</a>
Avec la guillemet faisant parti du lien.
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

gerard-ll Membre non connecté
-
- Voir le profil du membre gerard-ll
- Inscrit le : 09/12/2011
- Groupes :
Jybz :Non, ça c'est un lien ajouté sans balise code sur le forum.
Au départ c'est
echo "proto:/domaine/lien"
Une fois envoyé, phpboost converti
echo "<a href=proto:/domaine/lien">proto:/domaine/lien"</a>
Avec la guillemet faisant parti du lien.
Ah ok d'accord

Édité par gerard-ll Le 20/01/2024 à 15h44
Pal mal Mageia!
@+
Gérard
@+
Gérard

Ami age Membre non connecté
-
- Voir le profil du membre Ami age
- Inscrit le : 18/08/2012
- Site internet
- Groupes :
-
Modérateur
il s'agit du résultat de ton script Jybz.
Les png sont bien chargés, mais ils ne sont ni convertis en .dds, ni effacés
Code TEXT :
[s@localhost flightgear-photoscenery (master)]$ sh script_Jybz.sh ++ readlink -f script_Jybz.sh + currentScript=/home/s/Jeux/fgc/sources/flightgear-photoscenery/script_Jybz.sh + scriptDir=/home/s/Jeux/fgc/sources/flightgear-photoscenery + echo -e '\n\n\n* ** *** **** ***** Téléchargement automatique des images satelittes pour FLIGHTGEAR ***** **** *** ** *\n\n\n' * ** *** **** ***** Téléchargement automatique des images satelittes pour FLIGHTGEAR ***** **** *** ** * + echo 'Ouvrir firefox à cette adresse https://scenery.flightgear.org/static/map/index.html' Ouvrir firefox à cette adresse https://scenery.flightgear.org/static/map/index.html + echo -e '\n\n\nSélectionner la zone à couvrir en avec un clic droit avec get coordinate sur la carte pour relever le coin inférieur gauche puis le coin supérieur droit\n\n\n' Sélectionner la zone à couvrir en avec un clic droit avec get coordinate sur la carte pour relever le coin inférieur gauche puis le coin supérieur droit + echo 'Attention, le téléchargement peut-être long, limiter le nombre de tuiles à une dizaine dans un premier temps' Attention, le téléchargement peut-être long, limiter le nombre de tuiles à une dizaine dans un premier temps + echo 'Si besoin, un CTRL+c interrompra ce script' Si besoin, un CTRL+c interrompra ce script + echo '' + echo 'Entrer les coordonnées du coin inférieur gauche (Longitude et lattitude en même temps soit par exemple : 5.030708 44.012077)' Entrer les coordonnées du coin inférieur gauche (Longitude et lattitude en même temps soit par exemple : 5.030708 44.012077) + read pointA 6.291046 43.032761 + echo 'Entrer les coordonnées du coin supérieur droit (Longitude et lattitude en même temps soit par exemple : 5.488701 44.243969) :' Entrer les coordonnées du coin supérieur droit (Longitude et lattitude en même temps soit par exemple : 5.488701 44.243969) : + read pointB 6.723633 43.364127 + Long_coin_inf_gauche=6.291046 + Lat_coin_inf_gauche=43.032761 + Long_coin_sup_droit=6.723633 + Lat_coin_sup_droit=43.364127 + echo '' + echo 'Téléchargement en cours' Téléchargement en cours + echo '' + ./create_bbox.pl --latLL 43.032761 --lonLL 6.291046 --latUR 43.364127 --lonUR 6.723633 -- --cols 2 --scenery_folder /home/s/Jeux/fgc/sources/flightgear-photoscenery WARNING: Only do this for providers whose TOS allow this! WARNING: This may really strain remote ressources and cost the provider real $$$, so use with care and if in doubt, ask before using! cmd=python3 creator.py --lat "43.0328" --lon "6.2910" --info_only Tile 3055937 needs download cmd=python3 creator.py --index 3055937 --cols 2 --scenery_folder /home/s/Jeux/fgc/sources/flightgear-photoscenery INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.25000000-43.00000000_6.37500000-43.06250000.png.ai6ko4oz from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.25,43.0,6.375,43.0625&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.25000000-43.00000000_6.37500000-43.06250000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.37500000-43.00000000_6.50000000-43.06250000.png.2ra237x1 from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.375,43.0,6.5,43.0625&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.37500000-43.00000000_6.50000000-43.06250000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.25000000-43.06250000_6.37500000-43.12500000.png.gvtlmlrr from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.25,43.0625,6.375,43.125&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.25000000-43.06250000_6.37500000-43.12500000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.37500000-43.06250000_6.50000000-43.12500000.png.ulm_z9iu from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.375,43.0625,6.5,43.125&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.37500000-43.06250000_6.50000000-43.12500000.png' successfully fetched INFO:root:Joining tiles to /home/s/Jeux/fgc/sources/flightgear-photoscenery/Orthophotos/e000n40/e006n43/3055937.png Bucket: {'min_lat': 43.0, 'max_lat': 43.125, 'min_lon': 6.25, 'max_lon': 6.5, 'center_lat': 43.0625, 'center_lon': 6.375}. Index: 3055937 cmd=python3 creator.py --lat "43.0328" --lon "6.3410" --info_only cmd=python3 creator.py --lat "43.0328" --lon "6.3910" --info_only cmd=python3 creator.py --lat "43.0328" --lon "6.4410" --info_only cmd=python3 creator.py --lat "43.0328" --lon "6.4910" --info_only cmd=python3 creator.py --lat "43.0328" --lon "6.5410" --info_only Tile 3055938 needs download cmd=python3 creator.py --index 3055938 --cols 2 --scenery_folder /home/s/Jeux/fgc/sources/flightgear-photoscenery INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.50000000-43.00000000_6.62500000-43.06250000.png.9p9qofhv from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.5,43.0,6.625,43.0625&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.50000000-43.00000000_6.62500000-43.06250000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.62500000-43.00000000_6.75000000-43.06250000.png.cylpgi4g from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.625,43.0,6.75,43.0625&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.62500000-43.00000000_6.75000000-43.06250000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.50000000-43.06250000_6.62500000-43.12500000.png._s0yr7lh from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.5,43.0625,6.625,43.125&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.50000000-43.06250000_6.62500000-43.12500000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.62500000-43.06250000_6.75000000-43.12500000.png.gf9wdji0 from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.625,43.0625,6.75,43.125&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.62500000-43.06250000_6.75000000-43.12500000.png' successfully fetched INFO:root:Joining tiles to /home/s/Jeux/fgc/sources/flightgear-photoscenery/Orthophotos/e000n40/e006n43/3055938.png Bucket: {'min_lat': 43.0, 'max_lat': 43.125, 'min_lon': 6.5, 'max_lon': 6.75, 'center_lat': 43.0625, 'center_lon': 6.625}. Index: 3055938 cmd=python3 creator.py --lat "43.0328" --lon "6.5910" --info_only cmd=python3 creator.py --lat "43.0328" --lon "6.6410" --info_only cmd=python3 creator.py --lat "43.0328" --lon "6.6910" --info_only cmd=python3 creator.py --lat "43.0828" --lon "6.2910" --info_only cmd=python3 creator.py --lat "43.0828" --lon "6.3410" --info_only cmd=python3 creator.py --lat "43.0828" --lon "6.3910" --info_only cmd=python3 creator.py --lat "43.0828" --lon "6.4410" --info_only cmd=python3 creator.py --lat "43.0828" --lon "6.4910" --info_only cmd=python3 creator.py --lat "43.0828" --lon "6.5410" --info_only cmd=python3 creator.py --lat "43.0828" --lon "6.5910" --info_only cmd=python3 creator.py --lat "43.0828" --lon "6.6410" --info_only cmd=python3 creator.py --lat "43.0828" --lon "6.6910" --info_only cmd=python3 creator.py --lat "43.1328" --lon "6.2910" --info_only Tile 3055945 needs download cmd=python3 creator.py --index 3055945 --cols 2 --scenery_folder /home/s/Jeux/fgc/sources/flightgear-photoscenery INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.25000000-43.12500000_6.37500000-43.18750000.png.8gymvzgy from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.25,43.125,6.375,43.1875&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.25000000-43.12500000_6.37500000-43.18750000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.37500000-43.12500000_6.50000000-43.18750000.png.d72ixfbp from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.375,43.125,6.5,43.1875&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.37500000-43.12500000_6.50000000-43.18750000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.25000000-43.18750000_6.37500000-43.25000000.png.ascucjup from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.25,43.1875,6.375,43.25&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.25000000-43.18750000_6.37500000-43.25000000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.37500000-43.18750000_6.50000000-43.25000000.png.xf547tke from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.375,43.1875,6.5,43.25&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.37500000-43.18750000_6.50000000-43.25000000.png' successfully fetched INFO:root:Joining tiles to /home/s/Jeux/fgc/sources/flightgear-photoscenery/Orthophotos/e000n40/e006n43/3055945.png Bucket: {'min_lat': 43.125, 'max_lat': 43.25, 'min_lon': 6.25, 'max_lon': 6.5, 'center_lat': 43.1875, 'center_lon': 6.375}. Index: 3055945 cmd=python3 creator.py --lat "43.1328" --lon "6.3410" --info_only cmd=python3 creator.py --lat "43.1328" --lon "6.3910" --info_only cmd=python3 creator.py --lat "43.1328" --lon "6.4410" --info_only cmd=python3 creator.py --lat "43.1328" --lon "6.4910" --info_only cmd=python3 creator.py --lat "43.1328" --lon "6.5410" --info_only Tile 3055946 needs download cmd=python3 creator.py --index 3055946 --cols 2 --scenery_folder /home/s/Jeux/fgc/sources/flightgear-photoscenery INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.50000000-43.12500000_6.62500000-43.18750000.png.yg392_uu from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.5,43.125,6.625,43.1875&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.50000000-43.12500000_6.62500000-43.18750000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.62500000-43.12500000_6.75000000-43.18750000.png.apjlkany from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.625,43.125,6.75,43.1875&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.62500000-43.12500000_6.75000000-43.18750000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.50000000-43.18750000_6.62500000-43.25000000.png.og174dgh from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.5,43.1875,6.625,43.25&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.50000000-43.18750000_6.62500000-43.25000000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.62500000-43.18750000_6.75000000-43.25000000.png.0_086z1e from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.625,43.1875,6.75,43.25&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.62500000-43.18750000_6.75000000-43.25000000.png' successfully fetched INFO:root:Joining tiles to /home/s/Jeux/fgc/sources/flightgear-photoscenery/Orthophotos/e000n40/e006n43/3055946.png Bucket: {'min_lat': 43.125, 'max_lat': 43.25, 'min_lon': 6.5, 'max_lon': 6.75, 'center_lat': 43.1875, 'center_lon': 6.625}. Index: 3055946 cmd=python3 creator.py --lat "43.1328" --lon "6.5910" --info_only cmd=python3 creator.py --lat "43.1328" --lon "6.6410" --info_only cmd=python3 creator.py --lat "43.1328" --lon "6.6910" --info_only cmd=python3 creator.py --lat "43.1828" --lon "6.2910" --info_only cmd=python3 creator.py --lat "43.1828" --lon "6.3410" --info_only cmd=python3 creator.py --lat "43.1828" --lon "6.3910" --info_only cmd=python3 creator.py --lat "43.1828" --lon "6.4410" --info_only cmd=python3 creator.py --lat "43.1828" --lon "6.4910" --info_only cmd=python3 creator.py --lat "43.1828" --lon "6.5410" --info_only cmd=python3 creator.py --lat "43.1828" --lon "6.5910" --info_only cmd=python3 creator.py --lat "43.1828" --lon "6.6410" --info_only cmd=python3 creator.py --lat "43.1828" --lon "6.6910" --info_only cmd=python3 creator.py --lat "43.2328" --lon "6.2910" --info_only cmd=python3 creator.py --lat "43.2328" --lon "6.3410" --info_only cmd=python3 creator.py --lat "43.2328" --lon "6.3910" --info_only cmd=python3 creator.py --lat "43.2328" --lon "6.4410" --info_only cmd=python3 creator.py --lat "43.2328" --lon "6.4910" --info_only cmd=python3 creator.py --lat "43.2328" --lon "6.5410" --info_only cmd=python3 creator.py --lat "43.2328" --lon "6.5910" --info_only cmd=python3 creator.py --lat "43.2328" --lon "6.6410" --info_only cmd=python3 creator.py --lat "43.2328" --lon "6.6910" --info_only cmd=python3 creator.py --lat "43.2828" --lon "6.2910" --info_only Tile 3055953 needs download cmd=python3 creator.py --index 3055953 --cols 2 --scenery_folder /home/s/Jeux/fgc/sources/flightgear-photoscenery INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.25000000-43.25000000_6.37500000-43.31250000.png.sb01jpf5 from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.25,43.25,6.375,43.3125&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.25000000-43.25000000_6.37500000-43.31250000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.37500000-43.25000000_6.50000000-43.31250000.png.8rrw4tom from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.375,43.25,6.5,43.3125&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.37500000-43.25000000_6.50000000-43.31250000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.25000000-43.31250000_6.37500000-43.37500000.png.bh6pmsp6 from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.25,43.3125,6.375,43.375&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.25000000-43.31250000_6.37500000-43.37500000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.37500000-43.31250000_6.50000000-43.37500000.png.oo42qdpu from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.375,43.3125,6.5,43.375&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.37500000-43.31250000_6.50000000-43.37500000.png' successfully fetched INFO:root:Joining tiles to /home/s/Jeux/fgc/sources/flightgear-photoscenery/Orthophotos/e000n40/e006n43/3055953.png Bucket: {'min_lat': 43.25, 'max_lat': 43.375, 'min_lon': 6.25, 'max_lon': 6.5, 'center_lat': 43.3125, 'center_lon': 6.375}. Index: 3055953 cmd=python3 creator.py --lat "43.2828" --lon "6.3410" --info_only cmd=python3 creator.py --lat "43.2828" --lon "6.3910" --info_only cmd=python3 creator.py --lat "43.2828" --lon "6.4410" --info_only cmd=python3 creator.py --lat "43.2828" --lon "6.4910" --info_only cmd=python3 creator.py --lat "43.2828" --lon "6.5410" --info_only Tile 3055954 needs download cmd=python3 creator.py --index 3055954 --cols 2 --scenery_folder /home/s/Jeux/fgc/sources/flightgear-photoscenery INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.50000000-43.25000000_6.62500000-43.31250000.png.wku0llsd from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.5,43.25,6.625,43.3125&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.50000000-43.25000000_6.62500000-43.31250000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.62500000-43.25000000_6.75000000-43.31250000.png._a89m6x9 from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.625,43.25,6.75,43.3125&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.62500000-43.25000000_6.75000000-43.31250000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.50000000-43.31250000_6.62500000-43.37500000.png.upavr7da from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.5,43.3125,6.625,43.375&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.50000000-43.31250000_6.62500000-43.37500000.png' successfully fetched INFO:root:Downloading tile=/home/s/.cache/FlightGear photoscenery creator/ArcGIS/tmptile-4096x2048_6.62500000-43.31250000_6.75000000-43.37500000.png.8t9cqdli from url=http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=6.625,43.3125,6.75,43.375&bboxSR=4326&size=4096,2048&imageSR=4326&format=png24&f=image INFO:root:'tile-4096x2048_6.62500000-43.31250000_6.75000000-43.37500000.png' successfully fetched INFO:root:Joining tiles to /home/s/Jeux/fgc/sources/flightgear-photoscenery/Orthophotos/e000n40/e006n43/3055954.png Bucket: {'min_lat': 43.25, 'max_lat': 43.375, 'min_lon': 6.5, 'max_lon': 6.75, 'center_lat': 43.3125, 'center_lon': 6.625}. Index: 3055954 cmd=python3 creator.py --lat "43.2828" --lon "6.5910" --info_only cmd=python3 creator.py --lat "43.2828" --lon "6.6410" --info_only cmd=python3 creator.py --lat "43.2828" --lon "6.6910" --info_only cmd=python3 creator.py --lat "43.3328" --lon "6.2910" --info_only cmd=python3 creator.py --lat "43.3328" --lon "6.3410" --info_only cmd=python3 creator.py --lat "43.3328" --lon "6.3910" --info_only cmd=python3 creator.py --lat "43.3328" --lon "6.4410" --info_only cmd=python3 creator.py --lat "43.3328" --lon "6.4910" --info_only cmd=python3 creator.py --lat "43.3328" --lon "6.5410" --info_only cmd=python3 creator.py --lat "43.3328" --lon "6.5910" --info_only cmd=python3 creator.py --lat "43.3328" --lon "6.6410" --info_only cmd=python3 creator.py --lat "43.3328" --lon "6.6910" --info_only all done. + echo '' + echo 'Conversion en cours png -> dds' Conversion en cours png -> dds + echo '' + find . -iname '*.png' -print0 + IFS=0 + read file + echo '\nSuppression des images .png existantes\n' \nSuppression des images .png existantes\n + find /home/s/Jeux/fgc/sources/flightgear-photoscenery/Orthophotos/ -mindepth 0 -maxdepth 1 -type f -iname '*.png' -delete -print + echo -e '\n\nc'\''est terminé' c'est terminé + exit 0 [s@localhost flightgear-photoscenery (master)]$
Édité par Ami age Le 20/01/2024 à 15h57
_______________________________________________________________________

___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.



___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.

Ami age Membre non connecté
-
- Voir le profil du membre Ami age
- Inscrit le : 18/08/2012
- Site internet
- Groupes :
-
Modérateur
ma demande :
"coder un script en bash (console linux) pour effacer tous les fichiers images .png dans les dossiers et sous dossiers ou se trouve le script bash"
___________________________________________________________________________________________________
réponse :
Recherche de bash script effacer tous les fichiers images .png dans les dossiers et sous dossiers
Nous générons des réponses pour vous…
Bien sûr, je peux vous aider à écrire un script bash pour supprimer tous les fichiers images .png dans les dossiers et sous-dossiers où se trouve le script bash. Voici un exemple de script que vous pouvez utiliser:
Code TEXT :
#!/bin/bash # Trouver tous les fichiers .png dans le dossier courant et ses sous-dossiers find . -type f -name "*.png" -print0 | # Supprimer tous les fichiers .png trouvés xargs -0 rm -f
Ce script utilise la commande find pour trouver tous les fichiers .png dans le dossier courant et ses sous-dossiers, puis utilise la commande xargs pour supprimer tous les fichiers .png trouvés. Vous pouvez l’enregistrer sous le nom de votre choix et l’exécuter dans le dossier où vous souhaitez supprimer les fichiers .png.
J’espère que cela vous aidera! Si vous avez d’autres questions, n’hésitez pas à demander.
Source : conversation avec Bing, 22/01/2024
(1) Bash : supprimer les fichiers et sous-dossiers | SkyMinds.Net. https://www.skyminds.net/bash-supprimer-fichiers-sous-dossiers/.
(2) Script de bash pour supprimer des fichiers en fonction d’une période. https://webdevpro.net/script-de-bash-pour-supprimer-des-fichiers-et-dossiers-en-fonction-dune-periode/.
(3) [Résolu] Script BASH - Parcourir les fichiers d'un dossier par dev1521 .... https://openclassrooms.com/forum/sujet/script-bash-59120.
______________________________________________________________________________________________________
Qu'en dites vous ?
Édité par Ami age Le 22/01/2024 à 19h30
_______________________________________________________________________

___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.



___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Autant rester avec find en ajoutant -delete.
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Ami age Membre non connecté
-
- Voir le profil du membre Ami age
- Inscrit le : 18/08/2012
- Site internet
- Groupes :
-
Modérateur
Code TEXT :
#!/bin/bash # Trouver et effacer tous les fichiers .png dans le dossier courant et ses sous-dossiers find . -type f -name "*.png" -print0 |-delete
?
ou plutôt
Code TEXT :
#!/bin/bash # Trouver et effacer tous les fichiers .png dans le dossier courant et ses sous-dossiers find . -type f -name "*.png" -print0 -delete
?
Édité par Ami age Le 22/01/2024 à 19h47
_______________________________________________________________________

___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.



___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Code BASH :
#!/bin/bash # Trouver et effacer tous les fichiers .png dans le dossier courant et ses sous-dossiers find . -type f -iname '*.png' -print -delete
Utilisation de iname pour accepter *.PNG aussi, passer des doubles quotes au simples quotes pour éviter l'interprétation par bash et dernière modification print au lieu de print0 puisse que le résultat n'est pas réutilisé, inutile de séparé les fichiers avec le caractère 0
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Ami age Membre non connecté
-
- Voir le profil du membre Ami age
- Inscrit le : 18/08/2012
- Site internet
- Groupes :
-
Modérateur
Merci Jybz.
(En croisant les doigts pour que tous les PNG de mes disques ne soient pas détruits

A suivre.
Édité par Ami age Le 22/01/2024 à 21h48
_______________________________________________________________________

___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.



___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.

Ami age Membre non connecté
-
- Voir le profil du membre Ami age
- Inscrit le : 18/08/2012
- Site internet
- Groupes :
-
Modérateur
voici comment se termine le script :
Conversion en cours
./Orthophotos/e000n40/e003n42/3006760.png: dds already there
./Orthophotos/e000n40/e003n42/3006768.png: dds already there
./Orthophotos/e000n40/e002n42/2990387.png: dds already there
tel_tuiles_fg_effacepng.sh: ligne 76: fin de fichier (EOF) prématurée lors de la recherche du « " » correspondant
[s@localhost flightgear-photoscenery (master)]$
la ligne 76 est celle ci : echo "c est terminé"
Je ne comprends pourquoi cette ligne coincerait ?
voici le script
Code TEXT :
#!/bin/bash #télécharge les tuiles par paquet echo "" echo "" echo "" echo "* ** *** **** ***** Téléchargement automatique des images satelittes pour FLIGHTGEAR ***** **** *** ** *" echo "" echo "" echo "" echo "Ouvrir firefox à cette adresse https://scenery.flightgear.org/static/map/index.html" echo "" echo "" echo "Sélecionner la zone à couvrir en avec un clic droit avec get coordinate sur la carte pour relever le coin inférieur gauche " echo "puis le coin supérieur droit" echo "" echo "" echo "Attention, le téléchargement peut-être long, limiter le nombre de tuiles à une dizaine dans un premier temps" echo "Si besoin, un CTRL+c interrompra ce script" echo "" echo "Entrer les coordonnées du coin inférieur gauche (Longitude et lattitude en même temps soit par exemple : 5.030708 44.012077)" read pointA echo "Entrer les coordonnées du coin supérieur droit (Longitude et lattitude en même temps soit par exemple : 5.488701 44.243969) :" read pointB Long_coin_inf_gauche=${pointA% *} Lat_coin_inf_gauche=${pointA#* } Long_coin_sup_droit=${pointB% *} Lat_coin_sup_droit=${pointB#* } #Vous pouvez télécharger automatiquement une série de vignettes, plutôt qu'une à la fois, à l'aide du script create_bbox.pl . Perl est requis. #Spécifiez le cadre de délimitation souhaité avec les options --latLL, --lonLL, --latUR et --lonUR, où #\"LL\" signifie coin inférieur gauche et #\"UR\" signifie coin supérieur droit. #Après ces options, ajoutez un --puis les options vers lesquelles passer creator.py. #telecharge les tuiles : echo "" echo "Téléchargement en cours" echo "" ./create_bbox.pl --latLL $Lat_coin_inf_gauche --lonLL $Long_coin_inf_gauche --latUR $Lat_coin_sup_droit --lonUR $Long_coin_sup_droit -- --cols 2 --scenery_folder /home/s/Jeux/fgc/sources/flightgear-photoscenery # Convertit les fichiers .png en .dds : echo "" echo "Conversion en cours" echo "" #!/bin/bash #for file in *.png #do # convert "$file" "$(basename "$file" .png).dds" #done find . -name '*.png' | while IFS= read file; do dir=$(dirname $file); name=$(basename $file .png); echo -n "$file: "; if [ -f ${dir}/${name}.dds ]; then echo "dds already there"; else echo "convert to dds (dxt5:${dir}/${name}.dds)"; convert $file -define dds:compression=DXT5 dxt5:${dir}/${name}.dds; fi; done; echo " # Trouver et effacer tous les fichiers .png dans le dossier courant et ses sous-dossiers echo "" echo "Suppression des images .png existantes" find . -type f -iname '*.png' -print -delete echo "" echo "" echo "c est terminé"
Édité par Ami age Le 23/01/2024 à 21h29
_______________________________________________________________________

___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.



___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.

Ami age Membre non connecté
-
- Voir le profil du membre Ami age
- Inscrit le : 18/08/2012
- Site internet
- Groupes :
-
Modérateur
je ressaye, ça devrait être bon.
_______________________________________________________________________

___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.



___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie