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
61 stars 41 forks source link

Amélioration sur table voie (gestion si attribut natvoi est NULL) #207

Closed fred-V13 closed 4 years ago

fred-V13 commented 5 years ago

Pour une raison inconnue l'import du millésime 2019 donne des natvoi dans la table voie "VIDE" (et non des chaines vides)

Résultat: le résumé en cas "infos parcelle" est vide.

Pour corriger cela dans le fichier: templates->parcelle_info_parcelle_majic.sql j'ai rajouté: WHEN v.libvoi IS NOT NULL THEN trim(ltrim(p.dnvoiri, '0') || ' ' || trim(COALESCE(v.natvoi,' ')) || ' ' || v.libvoi) au lieu de WHEN v.libvoi IS NOT NULL THEN trim(ltrim(p.dnvoiri, '0') || ' ' || trim(v.natvoi')) || ' ' || v.libvoi)

Au cas ou sinon l'import passe bien... le template pourait etre modifié (pas d'incidence coalesce comptible sqllite et posgis)

Bien à vous

MaelREBOUX commented 4 years ago

A regarder.

fred-V13 commented 4 years ago

Testé, a priori problème corrigé, je clos. (merci ! )

rldhont commented 4 years ago

Correction faîtes ici https://github.com/3liz/QgisCadastrePlugin/commit/fef684485fc6ce0f85f99eb8c85de10c206da178