Opened 5 years ago

Closed 5 years ago

#581 closed defect (fixed)

[Bano] : Multi-part geometries do not provide a coordinate sequence

Reported by: vdct Owned by: tyndare
Priority: major Component: export cadastre
Keywords: Cc:

Description

Depuis l'application du correctif
https://github.com/osm-fr/export-cadastre/commit/e9ff94a248896e750d4f2d8829dba8e043773835
la récupération des infos du cadastre via les PDFs échoue sur plusieurs communes avec comme erreur :

Élimine les doublons dans les limites de parcelles
Traceback (most recent call last):

File "/data/project/cadastre.openstreetmap.fr/bin/cadastre-housenumber/bano/cadastre_vers_osm_adresses_pour_bano.py", line 1031, in <module>

cadastre_vers_adresses(sys.argv)

File "/data/project/cadastre.openstreetmap.fr/bin/cadastre-housenumber/bano/cadastre_vers_osm_adresses_pour_bano.py", line 946, in cadastre_vers_adresses

polygones_parcelles, index_polygones_parcelles = polygones_et_index_des_limite_parcelles(limite_parcelles)

File "/data/project/cadastre.openstreetmap.fr/bin/cadastre-housenumber/bano/cadastre_vers_osm_adresses_pour_bano.py", line 252, in polygones_et_index_des_limite_parcelles

add_polygon(Polygon(linear_rings[0], linear_rings[1:]))

File "/data/project/cadastre.openstreetmap.fr/bin/cadastre-housenumber/bano/cadastre_vers_osm_adresses_pour_bano.py", line 247, in add_polygon

if not already_present(p):

File "/data/project/cadastre.openstreetmap.fr/bin/cadastre-housenumber/bano/cadastre_vers_osm_adresses_pour_bano.py", line 242, in already_present

for i in index.intersection(p.centroid.coords[0]):

File "/home/tyndare/.local/lib/python2.7/site-packages/shapely/geometry/base.py", line 634, in coords

"Multi-part geometries do not provide a coordinate sequence")

NotImplementedError?: Multi-part geometries do not provide a coordinate sequence

Villes concernées :
8A118 : CAEN (14000)
EC165 : EAUNES (31600)
EC187 : FONSORBES (31470)
EC481 : STE FOY DE PEYROLIERES (31470)
EA555 : TOULOUSE (31000)
FB120 : JACOU (34830)
FA341 : VILLEVEYRAC (34560)
HK223 : SAINT LUBIN EN VERGONNOIS (41190)
HM294 : VILLIERS SUR LOIR (41100)
ON108 : BERCK (62600)
OM193 : CALAIS (62100)
OL215 : CARVIN (62220)
OP226 : CLARQUES (62129)
ZK102 : PARIS 02 (75002)
ZP113 : PARIS 13 (75013)
ZP114 : PARIS 14 (75014)
VL037 : CHATEAUNEUF-DU-PAPE (84230)
VL056 : JONQUIERES (84150)

Change History (1)

comment:1 Changed 5 years ago by tyndare

  • Resolution set to fixed
  • Status changed from new to closed

Correction testée sur EC165 : EAUNES (31600) et ZK102 : PARIS 02 (75002)
https://github.com/osm-fr/export-cadastre/commit/6da7c41406ce1201a04fc18d6df5745628103396

Note: See TracTickets for help on using tickets.