[OSM-dev] OSM IDs order in osm.pbf files

François Lacombe fl.infosreseaux at gmail.com
Tue Apr 21 14:59:36 UTC 2015

Hi François,

I'm interested in your project, importing OSM data to a kindly different
schema than the OSM one is always a challenge.

Is this a free/opensource project or a closed one ?

Nevertheless, I don't have any idea about the OSM ID Order  in the pbf

Good luck to find it out.


*François Lacombe*

fl dot infosreseaux At gmail dot com
@InfosReseaux <http://www.twitter.com/InfosReseaux>

2015-04-21 10:55 GMT+02:00 François Battail <francois.battail at sipibox.fr>:

> Dear List,
> 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 :
> 1. Records will always be in this order, that is:
>   - header,
>   - nodes,
>   - dense nodes,
>   - ways,
>   - relations.
> 2. OSM IDs are always in increasing order when parsing osm.pbf records
> forward.
> 3. A relation with ID x referencing another relation with ID y is such
> that x > y.
> Are these points safe to assume ?
> Thanks a lot, best regards.
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20150421/14b89895/attachment.html>

More information about the dev mailing list