Hi Andrzej,

no, it causes lots of problems.
For example, the bounding box for planet is (-90.0, -180.0, 90.0, 180.0).
If we don't distinct the positions of the left side from the right the area is 
a line with width 0.

The funny thing is that the precision in OSM doesn't even use all possible 32 
bit integers, only those for
-180 * 10_000_000 to 180 * 10_000_000  so the extreme values near 
Integer.MAX_VALUE are never used
(at least that is the conversion done in pbf or o5m format).

I think about using this format for Coord and maybe also Area.

Gerd
________________________________________
Von: mkgmap-dev <[email protected]> im Auftrag von Andrzej 
Popowski <[email protected]>
Gesendet: Dienstag, 21. Februar 2017 12:23:57
An: [email protected]
Betreff: Re: [mkgmap-dev] RE Commit r3801: merge split-shape branch

Hi Gerd,

 > I found new problems, e.g. 180.0 degrees and -180.0 degrees started
 > to give the same 32 bit value.

Isn't it good? The same is true for 24 bit precision and even for 8bit
angles.

--
Best regards,
Andrzej
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to