[GraphHopper] Cannot flush graph
Peter
graphhopper at gmx.de
Thu Jul 2 15:28:39 UTC 2015
Hi Tuan,
hmmh, good question :)
Did you try the RAMDataAccess with store to true and try if this works?
Maybe you can create a small and failing test?
Regards,
Peter
On 02.07.2015 15:22, Tuan Nguyen wrote:
> Hi,
>
> In my project, I created a GraphHopper object with following
> initialization:
> hopper = new GraphHopper();
> hopper.setCHEnable(false);
> hopper.setMemoryMapped();
> hopper.setOSMFile(PBF_FILE);
> hopper.setGraphHopperLocation(GRAPH_FOLDER);
> encoder = new CarFlagEncoder();
> hopper.setEncodingManager( new EncodingManager( encoder ) );
> hopper.setPreciseIndexResolution(20);
> hopper.importOrLoad();
>
> 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.
>
> However, when I tried to persist the updated edges by calling
> hopper.getGraph().flush(), the new speed was not stored to disc.
>
> MMap was used as DataAccessType so I suppose flush is enabled.
>
> Am I missing anything here?
>
> Kind Regards,
> Tuan.
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150702/08fcb99a/attachment.html>
More information about the GraphHopper
mailing list