[OSM-dev] Projection code

Ben Gimpert ben at somethingmodern.com
Wed May 3 09:57:02 BST 2006


Lars is totally right... Dig:

http://svn.openstreetmap.org/utils/tiger_import/tiger/utm.rb


On Sun, Apr 30, 2006 at 12:18:35PM +0200, Lars Aronsson wrote:
> Immanuel Scholz wrote:
> 
> > >From Wikipedia:
> > x = lon*PI/180,
> > y = log(tan(PI/4+lat*PI/360)))
> 
> Which Wikipedia page are you quoting?  These equations seem to 
> assume the Earth is a sphere, which is wrong by up to 0.3 percent.
> The Earth radius is 6372 km, and 0.3 percent of that is 19 km.
> If it was all this simple, libraries such as PROJ4 wouldn't exist.
> 
> 
> -- 
>   Lars Aronsson (lars at aronsson.se)
>   Aronsson Datateknik - http://aronsson.se
> 
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev




More information about the dev mailing list