[OSM-talk] near longitude 180

Robert (Jamie) Munro rjmunro at arjam.net
Thu Feb 19 14:15:40 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Vollmert wrote:
> Hello,
> 
> there's some strange coastline data near longitude 180. See eg
> http://openstreetmap.org/browse/way/24020654
> 
> I thought I'd ask before trying to fix this, in case I'd flood the  
> world otherwise.
> 
> I haven't found an editor that works well in this area -- they all  
> seem to think the world ends at ±180 degrees. Here's a challenge:  
> Which editor will be first to support seamless editing all around the  
> world? (Let's leave the poles out for now.)

The right solution here is to map 0-360 degrees to the unsigned integers
0-2^32. When you get an overflow, the right thing happens. It also makes
the most efficient use of the resolution available.

Jamie
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmdaYgACgkQz+aYVHdncI2C/wCg5dPiTb957XtiW/Tx3MbDper1
BrkAn2XJeTAJsHiVI2L1ioibGymBloQk
=noyk
-----END PGP SIGNATURE-----




More information about the talk mailing list