3liz / QgisCadastrePlugin

A QGIS plugin which helps users to import the french land registry ('cadastre') data into a database. It is meant to ease the use of the data in QGIS by providing search tools and appropriate layer symbology.
GNU General Public License v2.0
60 stars 41 forks source link

Extension cadastre erreur lors de Importer les données #383

Closed FAB13620 closed 1 year ago

FAB13620 commented 1 year ago

Bonjour à tous,

Description du bug

Je cherche à faire fonctionner l'extension Cadastre mais au moment d'importer les données j'ai un message d'erreur qui a déjà fait l'objet de tickets (#241 ; #237)

Reproduire le bug

  1. Installer QGIS
  2. Installer Postgres
  3. Installer pgAdmin 4
  4. Ouvrir QGIS
  5. Installer l'extension Cadastre
  6. Dans l'extension Cadastre configurer le plugin avec : BATI : MPM_AGGLO_BATI2022.txt FANTOIR : MPM_AGGLO_FANR2022.txt LOTLOCAL : MPM_AGGLO_LLOC2022.txt NBATI : MPM_AGGLO_NBAT2022.txt PDL : MPM_AGGLO_PDLL2022.txt PROP : MPM_AGGLO_PROP2022.txt
  7. Télécharger le fichier EDIGEO du département 13
  8. Extraire le Zip et placer ce qu'il contien dans un répertoire EDIGEO
  9. Dans un répertoire MAJIC, créer les 6 fichiers texte vides nommés comme dans la configuration de cadastre
  10. Dans pgAdmin, créer une BDD nommée bddcadastre à partir du modèle postgres.
  11. Dans schemas, ajouter un schema topology.
  12. Dans l'explorateur QGIS, créer la connexion entre postgresql et bddcadastre et cocher enregistrer le nom utilisateur et mot de passe.
  13. Tester la connexion qui renvoie OK.
  14. Dans QGIS, dans l'extension Cadastre cliquer importer les données. Type de base : postgres Connexion : bddcadastre (valeur par défaut) Dans l'onglet postgis, créer un schéma cadastre qui se sélectionne automatiquement. Renseigner les chemin EDIGEO et MAJIC Dans projection source et cible renseigner EPSG:2154 - RGF93 / Lambert-93 Département : 13 Lot : Marseille
  15. Lancer l'import
  16. L'erreur apparaît.

Log

Voir fichier Log.docx

Recopier ci-dessous l'erreur Python de QGIS

Où trouver l'erreur Python de QGIS ?

Voir fichier erreur.docx

Environnement

Merci.

Fabrice.

Log.docx Erreur.docx

Gustry commented 1 year ago

Pour mettre l'erreur visible ici :

 renvoyé 0 [ERROR:  function addgeometrycolumn(text, unknown, unknown, integer, unknown, integer) does not exist
LINE 844: SELECT AddGeometryColumn ( current_schema::text, 'geo_commun...
                 ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
]

Lié a des tickets existants : https://github.com/3liz/QgisCadastrePlugin/issues/226 et https://github.com/3liz/QgisCadastrePlugin/issues/241 Je clos donc ce ticket.