[OSM-dev] OSM IDs order in osm.pbf files
me at komzpa.net
Tue Apr 21 14:53:30 UTC 2015
No, they aren't.
1. records can go in any order, nodes / dense nodes blocks can mix;
2. IDs can go in any order;
3. relations can be circular in any direction.
If you want, you can ensure first two ones by prepeocessing input file with
something like osmconvert.
вт, 21 апр. 2015 г. в 17:29, 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
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dev