[GraphHopper] Graph build fail

Peter graphhopper at gmx.de
Wed Mar 4 10:00:18 UTC 2015


Hi Emux,

thanks! That is a bug. The car encoder assumes that the OSMWay with
cycleway is ignored (due to if
(!defaultSpeedMap.containsKey(highwayValue)) in acceptWay) but it isn't
as also bike is included.

Please create an issue - I'll fix.

Regards,
Peter

On 04.03.2015 10:44, Emux wrote:
> I try to build a graph with GH 0.4-rc1 for the Germany region:
> baden-wuerttemberg-latest.osm.pbf downloaded from Geofabrik today.
> (This file was last modified 4 hours ago and contains all OSM data up
> to 2015-03-03T21:21:02Z.)
>
> I use the options CH off and (car, foot, bike).
> But the build fails with:
>
> Exception in thread "PBF Reader" Exception in thread "main"
> java.lang.RuntimeException: Couldn't process file
> baden-wuerttemberg-latest.osm.pbf, error: car, no speed found for:cycleway
>     at com.graphhopper.reader.OSMReader.writeOsm2Graph(OSMReader.java:319)
>     at com.graphhopper.reader.OSMReader.readGraph(OSMReader.java:150)
>     at com.graphhopper.GraphHopper.importData(GraphHopper.java:663)
>     at com.graphhopper.GraphHopper.process(GraphHopper.java:632)
>     at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:605)
>     at com.graphhopper.tools.Import.main(Import.java:15)
> Caused by: java.lang.IllegalStateException: car, no speed found
> for:cycleway
>     at
> com.graphhopper.routing.util.CarFlagEncoder.getSpeed(CarFlagEncoder.java:148)
>     at
> com.graphhopper.routing.util.CarFlagEncoder.handleWayTags(CarFlagEncoder.java:227)
>     at
> com.graphhopper.routing.util.EncodingManager.handleWayTags(EncodingManager.java:263)
>     at com.graphhopper.reader.OSMReader.processWay(OSMReader.java:367)
>     at com.graphhopper.reader.OSMReader.writeOsm2Graph(OSMReader.java:299)
>     ... 5 more
> java.lang.RuntimeException: Unable to read PBF file.
>     at com.graphhopper.reader.pbf.PbfReader.run(PbfReader.java:53)
>     at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.RuntimeException: java.lang.InterruptedException
>     at com.graphhopper.reader.OSMInputFile.process(OSMInputFile.java:265)
>     at
> com.graphhopper.reader.pbf.PbfDecoder.sendResultsToSink(PbfDecoder.java:106)
>     at
> com.graphhopper.reader.pbf.PbfDecoder.processBlobs(PbfDecoder.java:171)
>     at com.graphhopper.reader.pbf.PbfDecoder.run(PbfDecoder.java:184)
>     at com.graphhopper.reader.pbf.PbfReader.run(PbfReader.java:49)
>     ... 1 more
> Caused by: java.lang.InterruptedException
>     at
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2017)
>     at
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2052)
>     at
> java.util.concurrent.LinkedBlockingQueue.put(LinkedBlockingQueue.java:349)
>     at com.graphhopper.reader.OSMInputFile.process(OSMInputFile.java:262)
>     ... 5 more
>
> -- 
> Emux
> Cruiser <http://wiki.openstreetmap.org/wiki/Cruiser> - Atlas
> <http://wiki.openstreetmap.org/wiki/Atlas_%28navigation_application%29>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150304/1901ad8e/attachment.html>


More information about the GraphHopper mailing list