Skip to content

Fehler in multipolygon relation=450512 #11

Description

@marians

Zum Reproduzieren:

python -m osm.multipolygon -r 450512

Erzeugt den Fehler:

node with more than 2 ways 665766410
Traceback (most recent call last):
  File ".../lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File ".../lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File ".../lib/python2.7/site-packages/osm/multipolygon.py", line 329, in <module>
    mp = multipolygon(osmobj.relations[int(relation)])
  File ".../lib/python2.7/site-packages/osm/multipolygon.py", line 14, in __init__
    self.read_relation(self.relation)
  File ".../lib/python2.7/site-packages/osm/multipolygon.py", line 36, in read_relation
    self.outer_polygons, self.outer_ways = self.create_polygons(outer_ways)
  File ".../lib/python2.7/site-packages/osm/multipolygon.py", line 82, in create_polygons
    ways = endnodes.pop(startnode.id)
KeyError: 665766410

Die Relation hat offensichtlich einen Knoten, in dem sich zwei Polygone (und insgesamt 4 ways) berühren. Siehe

http://www.openstreetmap.org/browse/relation/450512
http://www.openstreetmap.org/browse/node/665766410

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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