[GraphHopper] Cannot flush graph

Tuan Nguyen minhtuan2712 at gmail.com
Thu Jul 2 13:22:42 UTC 2015


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150702/c50db365/attachment.html>


More information about the GraphHopper mailing list