[OSM-dev] Fwd: Osmosis - Cutting out a bounding box from a diff file (.osc)

sly (sylvain letuffe) liste at letuffe.org
Thu Sep 6 10:33:10 BST 2012


hi,

> but is it a bug? or am I missing the good reason why there is this factor
> 100?

I searched the source code to find the reason why there is a x100 on 
coordinate, but couldn't find where it's done.
But my guess is that for performance reasons, the field to store x/y was 
chosen to be an integer instead of a float. And because rounding a spherical 
mercator to the unit would loose sub meter precision, it was stored as 
multiplied by 100 for ~cm accuracy 

-- 
sly
qui suis-je : http://sly.letuffe.org
email perso : sylvain chez letuffe un point org



More information about the dev mailing list