Skip to content

Commit

Permalink
correction de la recherche sur adresse avec des codes voies n'ayant p…
Browse files Browse the repository at this point in the history
…as l'identifiant majic (ccovoi)

Depuis 3liz/QgisCadastrePlugin#451
  • Loading branch information
rldhont committed Aug 27, 2024
1 parent 32742fb commit 5f1f7d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Changed

* correction de la recherche sur adresse avec des codes voies n'ayant pas l'identifiant majic (ccovoi)

## 2.1.3 - 2024-07-18

### Changed
Expand Down
5 changes: 3 additions & 2 deletions cadastre/classes/cadastreExtraInfos.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function getLocauxAndProprioSql($parcelle_ids, $withGeom = false, $for
-- adresse
ltrim(l.dnvoiri, '0') || l.dindic AS l_numero_voirie,
CASE WHEN v.libvoi IS NOT NULL THEN v.natvoi || v.libvoi ELSE p.cconvo || p.dvoilib END AS l_adresse,
CASE WHEN v.libvoi IS NOT NULL THEN v.natvoi || v.libvoi ELSE p.cconvo || ' ' || p.dvoilib END AS l_adresse,
-- local
(l10.ccodep || l10.ccocom || '-' ||l10.dnupro) AS l10_compte_proprietaire,
Expand Down Expand Up @@ -118,7 +118,8 @@ protected function getLocauxAndProprioSql($parcelle_ids, $withGeom = false, $for
INNER JOIN parcelle_info gp ON gp.geo_parcelle = p.parcelle
INNER JOIN local00 l ON l.parcelle = p.parcelle
INNER JOIN local10 l10 ON l10.local00 = l.local00
LEFT JOIN voie v ON v.voie = l.voie
LEFT JOIN voie v
ON SUBSTR(l.voie, 1, 6) || SUBSTR(l.voie, 12, 4) = SUBSTR(v.voie, 1, 6) || SUBSTR(v.voie, 12, 4)
LEFT JOIN dteloc ON l10.dteloc = dteloc.dteloc
LEFT JOIN cconlc ON l10.cconlc = cconlc.cconlc
LEFT JOIN ccoplc ON l10.ccoplc = ccoplc.ccoplc
Expand Down

0 comments on commit 5f1f7d6

Please sign in to comment.