OSM-es / CatAtom2Osm

Tool to convert INSPIRE data sets from the Spanish Cadastre ATOM Services to OSM files.
BSD 2-Clause "Simplified" License
13 stars 5 forks source link

ERROR - 'geom_invalid_building' #93

Closed javiersanp closed 2 years ago

javiersanp commented 2 years ago

Ocurre en 02048 03002 03046 03047 y varias decenas más.

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/opt/CatAtom2Osm/catatom2osm/__main__.py", line 154, in <module>
    run()
  File "/opt/CatAtom2Osm/catatom2osm/__main__.py", line 142, in run
    process(options)
  File "/opt/CatAtom2Osm/catatom2osm/__main__.py", line 67, in process
    CatAtom2Osm.create_and_run(a_path, o)
  File "/opt/CatAtom2Osm/catatom2osm/app.py", line 85, in create_and_run
    app.run()
  File "/opt/CatAtom2Osm/catatom2osm/app.py", line 116, in run
    self.process_building()
  File "/opt/CatAtom2Osm/catatom2osm/app.py", line 353, in process_building
    self.building.clean()
  File "/opt/CatAtom2Osm/catatom2osm/geo/layer/cons.py", line 357, in clean
    self.delete_small_geometries()
  File "/opt/CatAtom2Osm/catatom2osm/geo/layer/polygon.py", line 264, in delete_small_geometries
    report.values['geom_invalid_' + self.name()] += len(to_clean)
KeyError: 'geom_invalid_building'