Tutoriel envoie de photo depuis Windows

En utilisant le tuto initial sous Windows 10, j’ai été capable d’importer mon stock de photos acquis depuis l’été dernier. Ce sont des photos prises avec l’appli Mapillary sous Android (et positionnement RTK). 676 séquences pour un total de 160 Go et 174.000 fichiers. Après quelques essais sur des dossiers individuels, j’ai fait un script (.ps1) pour importer tout ça:

Get-Date
geovisio upload --api-url https://panoramax.openstreetmap.fr E:\Pictures\APN\mapillary\2023_07_29_07_30_23_311_+0200
geovisio upload --api-url https://panoramax.openstreetmap.fr E:\Pictures\APN\mapillary\2023_07_29_07_37_40_497_+0200
geovisio upload --api-url https://panoramax.openstreetmap.fr E:\Pictures\APN\mapillary\2023_08_09_11_12_27_258_+0200
geovisio upload --api-url https://panoramax.openstreetmap.fr E:\Pictures\APN\mapillary\2023_08_09_11_19_00_482_+0200
geovisio upload --api-url https://panoramax.openstreetmap.fr E:\Pictures\APN\mapillary\2023_08_09_11_24_38_620_+0200
geovisio upload --api-url https://panoramax.openstreetmap.fr E:\Pictures\APN\mapillary\2023_08_09_11_29_43_583_+0200
geovisio upload --api-url https://panoramax.openstreetmap.fr E:\Pictures\APN\mapillary\2023_08_09_11_36_33_532_+0200
[...]
geovisio upload --api-url https://panoramax.openstreetmap.fr E:\Pictures\APN\mapillary\2024_03_17_18_02_45_402_+0100
geovisio upload --api-url https://panoramax.openstreetmap.fr E:\Pictures\APN\mapillary\2024_03_17_18_09_25_345_+0100
geovisio upload --api-url https://panoramax.openstreetmap.fr E:\Pictures\APN\mapillary\2024_04_30_16_37_54_799_+0200
Get-Date

10 heures de téléchargement.

À noter que sous Windows 10, si on demande terminal, ça ouvre l’ancienne ligne de commande à la DOS.

Dans l’explorateur de fichiers, PowerShell n’est pas proposé dans le menu contextuel. Il faut aller dans le menu Fichiers:

2 Likes

Hi @Hopen111, it’s great to see all these pictures in the US.
You’ve sent them to the IGN instance (https://panoramax.ign.fr). Unfortunately, this instance does NOT display any basemap outside of France. The IGN organisation does not plan to change that: the targeted coverage of the agency is limited to France (including overseas French territories).

In consequence, the sequences you’ve sent are displayed on a blank basemap, see for example Panoramax IGN : photo-cartographier les territoires
This result in a poor user experience.

Our proposals to fix this:

  • Would you kindly agree to move all your pictures to the OSM instance (https://panoramax.openstreetmap.fr) ?
    This would involve to delete all your US pictures on the IGN instance and upload them again on the OSM instance.
  • Alternatively, we can manage to do it ourselves. You just have to give your approval by replying to this message and we’ll proceed.
  • to avoid this issue in the future, we will implement a system to prevent to send pictures in any places around the globe see Add geographic areas where pictures are not accepted (#161) · Issues · Panoramax / Server / API · GitLab
    This system will allow the instance manager to choose a custom area for the users to send pictures in.
    Therefore, the API will refuse any picture sent in this area and we will display a custom message before the upload process.

This system is not implemented yet so you’re stuck in the middle, and for that, we apologise.
Thanks in advance and thank you again for your HD-and-very-precisely-localized pictures

1 Like

If you can move all the photos to OSM then that would be great!

Btw how do I upload to OSM instead of IGN with the command line from now on? The current command that I use is this:

geovisio upload --api-url https://panoramax.ign.fr .

We’ll move your pictures to the OSM instance, thanks

To switch to another instance, just change the URL from https://panoramax.ign.fr to https://panoramax.openstreetmap.fr. All the syntax remains exactly the same.

1 Like

I can do the transfer @Hopen111 , I’ll need a token to be able to upload them on your account, I’ll contact you in private message.

1 Like

@antoine-de I’ve sent you the stuff you needed! btw how is the transfer going?

Depuis peu je suis passé sur MacOS, et j’aimerais utiliser l’envoie par ligne de commande.
J’arrive à suivre le tuto jusqu’à l’installation de geovisio_cli via pipx.

Mais lorsque j’exécute la commande ci-dessous, cela me renvoie un message d’erreur que je n’arrive pas débloquer :confused:

geovisio upload --api -url https://panoramax.openstreetmap.fr

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.9/bin/geovisio", line 5, in <module>
    from geovisio_cli.main import app
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/geovisio_cli/main.py", line 4, in <module>
    from geovisio_cli import exception, model, auth, utils, __version__
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/geovisio_cli/model.py", line 5, in <module>
    from geopic_tag_reader import reader
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/geopic_tag_reader/reader.py", line 2, in <module>
    import pyexiv2  # type: ignore
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyexiv2/__init__.py", line 6, in <module>
    from .core import *
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyexiv2/core.py", line 4, in <module>
    from .lib import exiv2api
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyexiv2/lib/__init__.py", line 23, in <module>
    ctypes.CDLL(os.path.join(lib_dir, 'libexiv2.dylib'))
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyexiv2/lib/libexiv2.dylib, 0x0006): Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
  Referenced from: <CAB804D5-B2F7-327D-81FA-5B1C6888E940> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyexiv2/lib/libexiv2.dylib
  Reason: tried: '/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/usr/lib/libintl.8.dylib' (no such file, not in dyld cache)

Auriez-vous une idée pour résoudre ce problème ?
Merci d’avance.

Hi again. it’s been a few months, and the transfer still hasn’t happened? I’m wondering when the estimated time for it to occur will happen.

J’ai réussi à virer la version 3.9 de python qui posait problème.
Et j’ai réussi à me connecter !

Prochaine étape réussir à utiliser les lignes de commandes pour envoyer tout un dossier directement :sweat_smile:

Erreur d'accès

EDIT : en installant PowerSheel ça semble fonctionner, sauf que j’ai quasiment toutes les photos qui ont l’erreur suivante :

🔎 Last error 🔎                                                             │
│ <!doctype html>                                                              │
│ <html lang=en>                                                               │
│ <title>500 Internal Server Error</title>                                     │
│ <h1>Internal Server Error</h1>                                               │
│ <p>The server encountered an internal error and was unable to complete your…

EDIT : ça fonctionne enfin en copiant le dossier sur mon bureau :tada: