[OSM-dev] ODbL full history planet

Jochen Topf jochen at remote.org
Tue Oct 30 09:46:00 GMT 2012


On Thu, Oct 25, 2012 at 02:24:48PM +0200, Stephan Knauss wrote:
> Pascal Neis writes:
> 
> >Jochen Topf schrieb:
> >> What about redacted versions of nodes without coordinates?
> >can you please give an example Node ID for that?
> >I mean, did the bot really only removed lat/lon of
> >a node and not the entire version no. of a node?
> 
> for example here:
> http://www.openstreetmap.org/api/0.6/node/573785524/history
> 
> entry does not contain lat/lon, also versions are missing.
> 
> Was also discussed in this thread:
> http://lists.openstreetmap.org/pipermail/rebuild/2012-July/000299.html
> 
> Can the software/osmium cope with that? what will end up in the pbf
> file?

PBF files don't have a way of storing non-existing coordinates. When PBF was
invented this couldn't happen and nobody ever thought of adding it.

Osmium uses MAXINT (boost::integer_traits<int32_t>::const_max) to mark invalid
positions internally. This will show up as 214.7483647 externally if whatever
code you have doesn't check the result of the defined() method. It will happily
write those values to the PBF file, because it doesn't know anything better to
do. So yes, Osmium will handle this case, it doesn't crash or so. But it might
not handle it in the way you expect. And it can't handle it properly until
somebody defines what "properly" is.

Jochen
-- 
Jochen Topf  jochen at remote.org  http://www.remote.org/jochen/  +49-721-388298



More information about the dev mailing list