# Wolfram Language™

## Spherical or Ellipsoidal Mercator

The Mercator projection produces different results with a spherical model of the Earth and an ellipsoidal model of the Earth. The Wolfram Language allows you to work with both situations.

The projection used in most map web servers uses a spherical model of the Earth, and it is usually called "web Mercator".

In:= ```webMercator = {"Mercator", "ReferenceModel" -> GeodesyData["WGS84", "SemimajorAxis"]}```
Out= In:= `ellipMercator = {"Mercator", "ReferenceModel" -> "WGS84"}`
Out= Transform the location of the University of Oxford using both projections.

In:= ```p = GeoPosition[ Entity["University", "UniversityOfOxfordUnitedKingdom36022"]]```
Out= In:= `GeoGridPosition[p, webMercator][]`
Out= In:= `GeoGridPosition[p, ellipMercator][]`
Out= There is a difference corresponding to more than 33 kilometers in the northing coordinate.

In:= ```GeoGridPosition[p, webMercator][]; GeoGridPosition[p, ellipMercator][]; %% - %```
Out= Using both projections, draw respective maps of the UK and Ireland, which look nearly identical.

In:= ```webmap = GeoGraphics[{FaceForm[], EdgeForm[Red], Polygon[{Entity["Country", "UnitedKingdom"], Entity["Country", "Ireland"]}], Red, Point[p]}, GeoProjection -> webMercator, GeoBackground -> None][]```
Out= In:= ```ellipmap = GeoGraphics[{FaceForm[], EdgeForm[Blue], Polygon[{Entity["Country", "UnitedKingdom"], Entity["Country", "Ireland"]}], Blue, Point[p]}, GeoProjection -> ellipMercator, GeoBackground -> None][]```
Out= However, when overlaid on the same map, you can clearly see the difference.

In:= `Show[webmap, ellipmap]`
Out= 