<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Thanks guys,<br>
<br>
I'm building it on PC not in device. What I want is pre-prepared
packs for every country.<br>
<br>
<div class="moz-signature">
--</div>
On 18. 7. 2014 11:17, Peter wrote:<br>
</div>
<blockquote cite="mid:53C8E644.4050305@gmx.de" type="cite">
<pre wrap="">Hey
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">You'll have to set chShortcuts=no like you did but be sure you
removed the gh folder before you import again otherwise graphhopper
will load and fail (but should report with meaningful error?).
</pre>
</blockquote>
<pre wrap="">I do this always (remove previous directory). I have tried it again
just to be sure and same result.
</pre>
</blockquote>
<pre wrap="">
What error/exception do you get?
</pre>
</blockquote>
<br>
I use default <i>config.properties</i> file and only change
'osmreader.acceptWay' parameter. Anyway now during testing I found,
that files generated with<br>
<br>
prepare.chShortcuts=no<br>
osmreader.acceptWay=car<br>
<br>
create a smaller pack for car (just around 60 MB) - it's OK, but
this file throws same issue as I wrote before<br>
<br>
<i> java.lang.IllegalStateException: Cannot load the graph when
using instance of com.graphhopper.storage.LevelGraphStorage and
location:
/storage/emulated/0/Locus/mapsVector/czech-republic-latest.osm-gh/</i><i><br>
</i><i> at
com.graphhopper.storage.GraphHopperStorage.loadNodesHeader(GraphHopperStorage.java:1456)</i><i><br>
</i><i> at
com.graphhopper.storage.GraphHopperStorage.loadExisting(GraphHopperStorage.java:1408)</i><i><br>
</i><i> at
com.graphhopper.GraphHopper.load(GraphHopper.java:743)</i><br>
<br>
I've tried to change parameter 'setCHShortcuts' in my app, but no
result.<br>
<br>
<i> GraphHopper tmpHopp = new GraphHopper().forMobile();</i><i><br>
</i><i> tmpHopp.setCHShortcuts("no");</i><br>
<br>
<blockquote cite="mid:53C8E644.4050305@gmx.de" type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">Ok, so to sumarize it (mainly for me if I understand all correctly)
1. it's not possible to create one routing pack for car, bike, foot
for Android devices because of memory limits (I agree, they are tight
- but it's a lot better on 4.x devices)
</pre>
</blockquote>
<pre wrap="">
you can try it. smallish area should work.
</pre>
</blockquote>
<br>
Understand understand. I just because of second limitations, best
should be to create as big files as possible. Anyway I'll try it.<br>
<br>
<blockquote cite="mid:53C8E644.4050305@gmx.de" type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">2. it's not possible to route over more then one pack. So if I provide
for users separate routing packs for every country, it's possible to
use only one file at time
</pre>
</blockquote>
<pre wrap="">
yes
Regards,
Peter.
_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
Menion<br>
</body>
</html>