[GraphHopper] Looking for an engine for horse (and hiking) routing
Nop
ekkehart at gmx.de
Sat May 25 16:48:53 UTC 2013
Hi!
Am 25.05.2013 16:47, schrieb Peter K:
>> I extended the oneWay test, but it's true for all of them. The test
>> manually takes apart the Graph and that much harder to understand for
>> me than the parsing code.
>
> What do you mean with 'takes apart'?
It checks nodes and parses through the graph to basically test for the
presence of ways and flags. That's rather hard to analyze.
>> Due to the Maven setup I could run the tests, but not enter them with
>> the debugger to have a closer look at what the data means.
>
> What is so difficult with a maven setup? In NetBeans
> running/debugging/profiling or even compile on save works out of the
> box, just open the project!
> and eclipse with some maven plugin should also be easy, but I don't know
> eclipse enough to recommend a setup.
Its a black box to me. IntelliJ's maven plugin has recognized the
configuration and i can run lifecycle jobs to build stuff and run the tests.
I built a runtime configuration in the IDE with parameters taken from
graphhopper.sh so I can run graphhopper with the debugger in the IDE.
But I have no idea what maven does to run the tests or how to intercept
that and run it directly in the debugger.
If found something that looks like it a jetty:run build target in the
web project, but if I try and run that, I get [WARNING] The POM for
com.graphhopper:graphhopper:jar:0.1-20130525.080839-10 is missing, no
dependency information available
>>> you can try the MiniGraphUI in the tools sub project (a raw desktop UI,
>>> very good for visually debugging) or call
>>
>> It starts and shows a black mesh of lines.
> zoom in/out via mouse wheel or drag and drop like with a normal map.
Works.
>> I haven't changed anything yet, config is set to dikstrabi. What's wrong?
>
> You are using a levelgraph. you need to change this to the unprepared
> graph (in the config.properties -> chShortcuts=false).
> Or just modify MiniGraphUI to your needs to avoid this exception
I switched to an unprepared graph and it's working now. Thanks.
>>> ./graphhopper.sh web <osm file>
>>> and then access localhost:8989
>>
>> I'm working on windows, that does not work for me.
>
> Why don't you try cygwin as suggested by Robert?
That was the first thing I tried, even before he mentioned it. Just
gives some error messages:
./graphhopper.sh: Zeile 2: $'\r': Kommando nicht gefunden.
./graphhopper.sh: Zeile 50: Syntaxfehler beim unerwarteten Wort `$'{\r''
'/graphhopper.sh: Zeile 50: `function ensureMaven {
> you can also try 'mvn jetty:run', no need to download jetty. if
> everything fails you'll need to create a war file and deploy this to
> tomcat or jetty, but this procedure is extremly slow.
> And for the ease of development you should really make sure that you can
> start the web service (and the import + miniUI) right from within your
> IDE, to make debugging etc easier.
Of course, I would love that. Import and mini UI work just fine - thats
just starting a Java application from a classpath.
But I have no idea how to get at the stuff thats wrapped in command line
maven.
bye
Nop
More information about the GraphHopper
mailing list