|Visual Basic (Declaration)|
Public Class Mercator Inherits Projection
public class Mercator : Projection
The meridians of longitude of the Mercator projection are vertical parallel equally spaced lines, cut at right angles by horizontal straight parallels which are increasingly spaced at each pole so that conformality exists.
The major navigational feature of the projection is found in the facts that a sailing route between two points is shown as a straight line, if the direction or azimuth of the ship remains constant with respect to north. This kind of route is called a loxodrome or rhumb line and is usually longer than the great circle path.
This projection has been standard since 1910 for nautical charts prepared by the former U.S. Coast and Geodetic Survey.
This code has been verified against the numerical examples in "Map Projections - A Working Manual" by John P Snyder, United States Geological Survey Professional Paper 1395" for forward and reverse spherical and ellipsoid.