[Openstreetmap-dev] WGS84/UTM/Lambda... Projection library
Ben Gimpert
ben at somethingmodern.com
Tue Sep 20 12:00:21 BST 2005
On Mon, Sep 19, 2005 at 11:30:11PM +0200, Immanuel Scholz wrote:
> Phe! Don't think some missing semicolon and brackets or some wrong
> clauses can scare me off. ;-)
>
> http://www.eigenheimstrasse.de/~imi/UTM.java
Looks good.
> Well, two things: First, although both algorithm claim to do the same,
> yours and the JEEP one provide slightly different projections, off by
> about 1?? of rotation. :-? Well, we'll see whose algo maps better on
> some background images ;)
Could be a bug in the projection, but specifically -- Manhattan as
imported from the U.S. Census TIGER data and projected with the Ruby
port looks nearly perfect.
> Second, a minor thing to consider in line 196, which is:
>
> phi1 = phi1_rad * RAD_TO_DEG
>
> What is phi1 for? It is never used again.. (Which my precious Java (!)
> development environment instantly detected and made me remove the
> resource consumpting line by one click. <rant><rant> hehe.. ;)
Ahh, porting cruft. Delete me.
More information about the dev
mailing list