Skip to content

Python error while importing certain coordinates #514

@WispBart

Description

@WispBart

While trying to import building data from Berlin I encountered the error below.

I've tracked the problematic data to the following coordinates:
Min Lat: 52.5563
Max Lat: 52.5625
Min Long: 13.455
Max Long: 13.4675

I've exported the region and added it as an attachment.
berlinpasedagplatz.zip

Error: Python: Traceback (most recent call last):
  File "C:\Users\WispBart\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blosm\__init__.py", line 250, in execute
    return self.importOsm(context)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\WispBart\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blosm\__init__.py", line 351, in importOsm
    a.render()
  File "C:\Users\WispBart\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blosm\app\blender.py", line 464, in render
    m.render()

  File "C:\Users\WispBart\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blosm\building\manager.py", line 81, in render
    self.renderer.render(building, self.data)
  File "C:\Users\WispBart\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blosm\building\renderer.py", line 135, in render
    self.renderElement(outline, building, osm)
  File "C:\Users\WispBart\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blosm\building\renderer.py", line 164, in renderElement
    self._renderElement(element, building, roof, data, osm)
  File "C:\Users\WispBart\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blosm\building\renderer.py", line 175, in _renderElement
    if roof.make(osm):
       ^^^^^^^^^^^^^^
  File "C:\Users\WispBart\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blosm\building\roof\profile.py", line 620, in make
    slotR.trackUp(roofIndices)
  File "C:\Users\WispBart\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blosm\building\roof\profile.py", line 465, in trackUp
    index = self.trackUp(roofIndices, index, part[-1])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\WispBart\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blosm\building\roof\profile.py", line 456, in trackUp
    elif part[-1] != parts[index+1][1][0]:
                     ~~~~~^^^^^^^^^
IndexError: list index out of range```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions