Opened 3 years ago

Last modified 3 years ago

#497 accepted defect

Fichier mix_en_facade_ou_isole absent

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

Description

Plantage sur la commune S0053 : CHALLES (72250)

Traceback (most recent call last):

File "/data/project/cadastre.openstreetmap.fr/bin/cadastre-housenumber/cadastre_vers_osm_adresses.py", line 922, in cadastre_vers_adresses

cherche_osm_buildings_proches(code_departement, code_commune, osm, transform_to_osm, transform_from_osm)

File "/data/project/cadastre.openstreetmap.fr/export-cadastre/bin/cadastre-housenumber/cherche_osm_buildings.py", line 190, in cherche_osm_buildings_proches

way.shape = LineString?([buildings_osm.nodes[id].xy for id in way.nodes])

KeyError?: 1939903440
mv: cannot stat `/data/work/cadastre.openstreetmap.frhidden/072/S0053/S0053-adresses_buildings_proches.zip': No such file or directory
Traceback (most recent call last):

File "/data/project/cadastre.openstreetmap.fr/bin/cadastre-housenumber/supprime_relations_associatedStreet.py", line 88, in

main(sys.argv)

File "/data/project/cadastre.openstreetmap.fr/bin/cadastre-housenumber/supprime_relations_associatedStreet.py", line 85, in main

remplace_associatedstreet_par_addrstreet(argv[1],argv[2])

File "/data/project/cadastre.openstreetmap.fr/bin/cadastre-housenumber/supprime_relations_associatedStreet.py", line 60, in remplace_associatedstreet_par_addrstreet

inputzip = zipfile.ZipFile?(inputfile, "r")

File "/usr/lib/python2.7/zipfile.py", line 701, in init

self.fp = open(file, modeDict[mode])

IOError: [Errno 2] No such file or directory: '/data/work/cadastre.openstreetmap.frdata/072/S0053-CHALLES-adresses-associatedStreet_mix_en_facade_ou_isole.zip'

Change History (1)

comment:1 Changed 3 years ago by tyndare

  • Status changed from new to accepted

Le problème proviens d'incohérences dans le résultat de la requête Overpass-API:

way(area:3600107481)["building"];(._;>;);out meta;

Dans la réponse certains way sont en dehors de l'area et il leur manque des nodes.
J'ai filtré la réponse en éliminant les way qui n'ont pas tout leur nodes mais il faudrait
peut-être corriger la requête.

Note: See TracTickets for help on using tickets.