启用混合模式的Graphhopper引发IllegalStateException

时间:2018-10-28 13:42:21

标签: graphhopper

我正在尝试使用git repo中的最新代码以混合模式启动Graphhopper。

配置文件,根据其注释和文档(以及this answer)具有:

prepare.ch.weightings: no
prepare.lm.weightings: fastest

我用docker build -t tgraphhopper:lastest .构建它,然后用docker run --name tgraphhopper -v ./data:/data -p 8989:8989 tgraphhopper:latest启动一个容器

出现在日志中的错误是:

  

java.lang.IllegalStateException:配置的graph.ch.weightings:[]为   不等于已加载[最快|汽车]           在com.graphhopper.storage.GraphHopperStorage.loadExisting(GraphHopperStorage.java:254)           在com.graphhopper.GraphHopper.load(GraphHopper.java:781)           在com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:637)           在com.graphhopper.http.GraphHopperManaged.start(GraphHopperManaged.java:71)           在io.dropwizard.lifecycle.JettyManaged.doStart(JettyManaged.java:27)           在org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)           在org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)           在org.eclipse.jetty.server.Server.start(Server.java:419)           在org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)           在org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)           在org.eclipse.jetty.server.Server.doStart(Server.java:386)           在org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)           在io.dropwizard.cli.ServerCommand.run(ServerCommand.java:53)           在io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:44)           在io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87)           在io.dropwizard.cli.Cli.run(Cli.java:78)           在io.dropwizard.Application.run(Application.java:93)           在com.graphhopper.http.GraphHopperApplication.main(GraphHopperApplication.java:33)

打胎以混合模式启动Graphhopper时我缺少什么?

1 个答案:

答案 0 :(得分:1)

您需要删除/ data中图的(可能)创建的缓存文件夹

(因此,如果您有area-latest.osm.pbf,该文件夹将被命名为area-latest.osm-gh