Skip to content

IllegalArgumentException in RestrictionTopology for planet import #3086

Closed

Description

@karussell

Should we ignore this (throw OSMRestrictionException instead?) and also give more information about the problem?

INFO  c.g.reader.osm.WaySegmentParser - Finished reading OSM file. pass1: 2949s,  pass2: 11936s,  total: 14885s
java.lang.IllegalArgumentException: fromEdges and toEdges cannot be size > 1 at the same time
        at com.graphhopper.reader.osm.RestrictionTopology.<init>(RestrictionTopology.java:64)
        at com.graphhopper.reader.osm.RestrictionTopology.way(RestrictionTopology.java:59)
        at com.graphhopper.reader.osm.OSMRestrictionConverter.buildRestrictionTopologyForGraph(OSMRestrictionConverter.java:95)
        at com.graphhopper.reader.osm.OSMReader.addRestrictionsToGraph(OSMReader.java:616)
        at com.graphhopper.reader.osm.OSMReader.readGraph(OSMReader.java:180)
        at com.graphhopper.GraphHopper.importOSM(GraphHopper.java:934)
        at com.graphhopper.GraphHopper.process(GraphHopper.java:823)
        at com.graphhopper.GraphHopper.importAndClose(GraphHopper.java:787)

More information after patch:

[WARN] Restriction relation 18382917 fromEdges and toEdges cannot be size > 1 at the same time for relation 18382917. tags: {type=restriction, restriction:motor_vehicle=no_entry, motor_vehicle:no_entry=Mo-Sa 15:00-21:00}, members: [from way 82652040, from way 4044312, from way 142950040, to way 1340813532, via way 5976275]. Relation ignored.
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions