Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalArgumentException in RestrictionTopology for planet import #3086

Closed
karussell opened this issue Dec 8, 2024 · 0 comments · Fixed by #3100
Closed

IllegalArgumentException in RestrictionTopology for planet import #3086

karussell opened this issue Dec 8, 2024 · 0 comments · Fixed by #3100
Labels

Comments

@karussell
Copy link
Member

karussell commented Dec 8, 2024

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
Labels
Projects
None yet
1 participant