Long Lat To Mercator

Apr 10, 2011 at 4:45 AM

Is there a function in this library that converts long lat to Mercator? Something like this function:

            private Point Mercator(double lon, double lat) {
                /* spherical mercator for Google, VE, Yahoo etc
                 * epsg:900913 R= 6378137
                 * x = long
                 * y= R*ln(tan(pi/4 +lat/2)
                 */
                double x = 6378137.0 * Math.PI / 180.0 * lon;
                double y = 6378137.0 * Math.Log(Math.Tan(Math.PI / 180 * (45 + lat / 2.0)));
                return new Point(x, y);
            }

Coordinator
Apr 10, 2011 at 11:37 AM

http://projnet.codeplex.com/wikipage?title=CreateProjection&referringTitle=FAQ as usual