[OSM-talk] Mathematic genius needed
Bernhard zwischenbrugger
bz at datenkueche.com
Mon Mar 22 04:56:28 GMT 2010
Stefan de Konink schrieb:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Op 22-03-10 04:20, Bernhard zwischenbrugger schreef:
>
>> Hint:
>>
>> At first you maybe think
>> centerLat = (minlat + matlat)/2;
>> centerLng = (minlng + matlng)/2;
>> could be the solution.
>>
>> But that does not give the correct result.
>> The center must be the center in screen coordinates.
>>
>
> I think your problem is more fundamental; because min and max are not
> going to work ;) lefttop, righttop, leftbottom, right bottom are.
>
Good Point you are right on that.
I have 2 Points in WGS84:
Southeast (example 0,0)
Northwest (example 90, 180)
A Mercator projection will result in a y value of infinite for this example.
Not easy ...
Bernhard
>
> Isn't it the idea:
>
> (max - min) / 2?
>
> You propose it the opposite.
>
> Its late, but I hope you have something for what I have attached.
>
>
> Stefan
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.14 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEAREKAAYFAkum5mcACgkQYH1+F2Rqwn0WQQCdHP9rKyyaU7W9RddU8L9QV+ej
> 2j0AnRrVBjbeRwZDtGhn8d1Wk14RZZ63
> =DdMd
> -----END PGP SIGNATURE-----
>
>
> ------------------------------------------------------------------------
>
More information about the talk
mailing list