<div dir="ltr"><div><div><div><div><div>Hi François,<br><br></div>I'm interested in your project, importing OSM data to a kindly different schema than the OSM one is always a challenge.<br><br></div>Is this a free/opensource project or a closed one ?<br><br><br></div>Nevertheless, I don't have any idea about the OSM ID Order  in the pbf files.<br><br></div>Good luck to find it out.<br><br></div>Cheers<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><b>François Lacombe</b><br><br>fl dot infosreseaux At gmail dot com<br><a href="http://www.infos-reseaux.com" target="_blank">www.infos-reseaux.com</a><br><a href="http://www.twitter.com/InfosReseaux" target="_blank">@InfosReseaux</a></div></div></div>
<br><div class="gmail_quote">2015-04-21 10:55 GMT+02:00 François Battail <span dir="ltr"><<a href="mailto:francois.battail@sipibox.fr" target="_blank">francois.battail@sipibox.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear List,<br>
<br>
I'm developing an application like osm2pgsql but with a very different schema, I would like to know if I can assume the following things when parsing an osm.pbf file :<br>
<br>
1. Records will always be in this order, that is:<br>
  - header,<br>
  - nodes,<br>
  - dense nodes,<br>
  - ways,<br>
  - relations.<br>
<br>
2. OSM IDs are always in increasing order when parsing osm.pbf records forward.<br>
<br>
3. A relation with ID x referencing another relation with ID y is such that x > y.<br>
<br>
Are these points safe to assume ?<br>
<br>
Thanks a lot, best regards.<br>
<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/dev" target="_blank">https://lists.openstreetmap.org/listinfo/dev</a><br>
</blockquote></div><br></div>