[GraphHopper] storing an additional byte field in the graph

Renaud De Landtsheer renaud.delandtsheer at cetic.be
Thu Nov 7 14:01:07 UTC 2013


Hi Peter,

For some dedicated application, I want to store an additional byte field 
in every edge.
I have understood the mechanism for declaring fields, and implemented 
something to handle byte fields.

My point is that the underlying DataStorage do not seem to tolerate that 
int are not aligned with the boundaries of their internal segments. As 
such, I am obliged to represent my field as an int instead of a single 
byte to ensure that the int are not crossing boundaries of segments. I 
did not find any other idea to maintain the alignment, since I did not 
see any API that I could call to maintain this alignment from outside 
the DataStorage.

This makes me a little bit sad because of wasted space.
Maybe you have a suggestion for me?

-- 
*Renaud De Landtsheer, Ir, Phd*
Sr R&D Engineer
CETIC
Rue des Frères Wright, 29/3
B-6041 Charleroi
Phone: +32 71 490 754


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20131107/d7156b50/attachment.html>


More information about the GraphHopper mailing list