<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Tuan,<br>
<br>
hmmh, good question :)<br>
<br>
Did you try the RAMDataAccess with store to true and try if this
works?<br>
Maybe you can create a small and failing test?<br>
<br>
Regards,<br>
Peter<br>
<br>
On 02.07.2015 15:22, Tuan Nguyen wrote:<br>
</div>
<blockquote
cite="mid:CAFy0W8bNs5UuW7rmwz0USHez9+6gc610RDTh86Obj0jPxF_vvQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi,<br>
<br>
</div>
In my project, I created a GraphHopper object with
following initialization:<br>
hopper = new GraphHopper();<br>
hopper.setCHEnable(false);<br>
hopper.setMemoryMapped();<br>
hopper.setOSMFile(PBF_FILE);<br>
hopper.setGraphHopperLocation(GRAPH_FOLDER);<br>
encoder = new CarFlagEncoder();<br>
hopper.setEncodingManager( new EncodingManager(
encoder ) );<br>
hopper.setPreciseIndexResolution(20);<br>
hopper.importOrLoad();<br>
<br>
</div>
I then used Map Matching component to find and update
speed of a number of edges. I could confirm that this
update was successful as the routing results before &
after updating speed were different.<br>
<br>
</div>
However, when I tried to persist the updated edges by
calling hopper.getGraph().flush(), the new speed was not
stored to disc.<br>
<br>
</div>
MMap was used as DataAccessType so I suppose flush is enabled.<br>
<br>
</div>
Am I missing anything here?<br>
<div>
<div>
<div><br clear="all">
<div>
<div>
<div>
<div>
<div>
<div class="gmail_signature">
<div dir="ltr">Kind Regards,<br>
Tuan.</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>
</body>
</html>