<div dir="ltr">No, they aren't.<br>1. records can go in any order, nodes / dense nodes blocks can mix;<br>2. IDs can go in any order;<div>3. relations can be circular in any direction.<br><br>If you want, you can ensure first two ones by prepeocessing input file with something like osmconvert.</div></div><br><div class="gmail_quote">вт, 21 апр. 2015 г. в 17:29, François Battail <<a href="mailto:francois.battail@sipibox.fr">francois.battail@sipibox.fr</a>>:<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<br>
schema, I would like to know if I can assume the following things when<br>
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<br>
forward.<br>
<br>
3. A relation with ID x referencing another relation with ID y is such<br>
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>