启用混合模式的 Graphhopper 抛出 IllegalStateException

Graphhopper with hybrid mode enabled throws IllegalStateException

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

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

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: Configured graph.ch.weightings: [] is not equal to loaded [fastest|car] at com.graphhopper.storage.GraphHopperStorage.loadExisting(GraphHopperStorage.java:254) at com.graphhopper.GraphHopper.load(GraphHopper.java:781) at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:637) at com.graphhopper.http.GraphHopperManaged.start(GraphHopperManaged.java:71) at io.dropwizard.lifecycle.JettyManaged.doStart(JettyManaged.java:27) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) at org.eclipse.jetty.server.Server.start(Server.java:419) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) at org.eclipse.jetty.server.Server.doStart(Server.java:386) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at io.dropwizard.cli.ServerCommand.run(ServerCommand.java:53) at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:44) at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87) at io.dropwizard.cli.Cli.run(Cli.java:78) at io.dropwizard.Application.run(Application.java:93) at com.graphhopper.http.GraphHopperApplication.main(GraphHopperApplication.java:33)

我在尝试以混合模式启动 Graphhopper 时错过了什么?

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

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