public class MercatorProjection
extends java.lang.Object
Project an input longitude/latitude (in degrees) to an easting/northing pair in meters. There are
several formulas for this. See PROJ4, PROJ4JS, or other sources. Map Projections, a Working
Manual (USGS Professional Paper 1395) gives the following: x = R (lon - lon0) y = R ln tan ((pi /
4) + (lat / 2)) ...or y = (R/2) [ln ((1 + sin(lat)) / (1 - sin(lat))] And if lon/lat are in
degrees: x = PI R (lon - lon0) / 180 y = R ln tan (45 + (lat / 2))
http://stackoverflow.com/questions
/14329691/covert-latitude-longitude-point-to-a-pixels-x-y-on-mercator-projection
http://docs.openlayers.org/library/spherical_mercator.html