[OSM-dev] Lite OSM backend

Jon Burgess jburgess at uklinux.net
Wed Sep 6 23:40:55 BST 2006


On Wed, 2006-09-06 at 23:03 +0100, OJW wrote:
> I'd better reveal this page then, in case anything is relevant to other people 
> developing binary OSM files:
> 
> http://almien.co.uk/OSM/Tools/Binary/
> 


You can save some space by optimising the structures to take into
account the different alignment requirements of the different fields.
Doing this saves 25% (32 -> 24 bytes) for TRG_node, and 14% (56->48
bytes) for TRG_seg. This should have same advantage in the sizes of the
resulting binary files too.

Compile and run the attached C file to see the difference.

	Jon

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp.c
Type: text/x-csrc
Size: 820 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20060906/587a0856/attachment.c>


More information about the dev mailing list