[OSM-dev] Storing way/relation start offset in PBF file

Frederik Ramm frederik at remote.org
Tue Nov 30 22:25:16 GMT 2010


Hi,

Christian Vetter wrote:
> Wouldn't it be easier to just declare your PBF file sorted (maybe even 
> topologically sorted)? That way you will always read the ways before 
> the nodes and relations before ways.

1. Relations can have circular references
2. Such a sorted file would be much more expensive to create (remember, 
Jochen's suggestion works in streaming mode)
3. There are situations where you *still* would like to e.g. skip 
directly to the node section in your case, so sorting would not solve 
all problems that Jochen's solution would address.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"



More information about the dev mailing list