[Talk-de] Standardprojektion von OSM??

Tobias Wendorff tobias.wendorff at uni-dortmund.de
Fr Feb 6 20:49:57 UTC 2009


Sven Geggus schrieb:
> function Lon2Merc(lon) {
>     return 20037508.34 * lon / 180;
> }
> 
> function Lat2Merc(lat) {
>     var PI = 3.14159265358979323846;
>     lat = Math.log(Math.tan( (90 + lat) * PI / 360)) / (PI / 180);
>     return 20037508.34 * lat / 180;
> }

Ich liebe MagicNumbers :-)




Mehr Informationen über die Mailingliste Talk-de