Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

The web mercator projection, popularised by Google Maps, seems to be given a new EPSG code every couple of years.

EPSG:900913 (Google in calculator text) was an unofficial code

EPSG:3785 - is the projection I currently use for my datasets

However this blog post suggests that the code is now EPSG:3857.

This projection can be found on the EPSG site but it seems to also use the code SR-ORG:6864 and claims "it is not a recognized geodetic system: see WGS 84 / World Mercator (CRS code 3395)."

So what is the official code to use?

share|improve this question
    
You should retitle this to What is the current Mercator Projection code for Google and Bing –  TheSteve0 Jul 23 '10 at 21:58
2  
I'm actually using it for OpenLayers and OpenStreetMap –  geographika Jul 23 '10 at 23:07
add comment

3 Answers 3

up vote 34 down vote accepted

This has been an annoying problem for a while, and hopefully will no longer be an issue.

3857 looks to be the current and correct code (I hope, that's what all my tile caches are in!).

Update 9/7/11 - as noted by Vadim below in comments, Esri did in fact revert back to 102100 from 3857 at Service Pack 1. Oddly, ArcGIS Server with SP1 applied returns a WKID of 102100 for a web mercator map service, but in the Services Directory, a web mercator map service has a spatial reference of '102100 (3857)'. EPSG has no entry for 102100. Not sure why Esri has chosen this route, but Esri's 102100 and 3857 are treated as equivalent by their products.

EPSG - (no direct link)

Code: EPSG::2008.114 Reporter: OGP Request: Revisit spherical mercator used for some web mapping applications Actions Taken: Deprecated ellipsoid 7059, datum 6055, method 9841, projection 19847, CRSs 4055 and 3785, tfm 15973. Added methods 1024 and 1026, proj 3856 and projCRS 3857. Entity Types Affected: Ellipsoid; Datum; Coordinate Operation Method; Coordinate Operation; Coordinate Reference System Codes Affected: 7059; 6055; 9841; 15973 19847; 4055 3785 Report Date (UTC): 2008-12-11 Closed Date (UTC): 2009-02-10

OpenLayers -

Today, there is an officially registered EPSG code 3857 whose projection is identical to EPSG:900913. (http://www.epsg-registry.org/export.htm?gml=urn:ogc:def:crs:EPSG::3857). So, if you need to combine overlay layers that are using either an alias or the official EPSG code with an OpenLayers SphericalMercator layer, you have to make sure that OpenLayers requests EPSG:3857 or other alias in stead of EPSG:900913.

ESRI -

@jamie - For a long time EPSG refused to assign a code to this coordinate system; therefore ESRI created the WKID codes 102113 and 102100. When EPSG did assign a code, they used 3785, but later changed it to 3857. ArcGIS 10 will follow ESRI practice of using an EPSG code when one exists, and will advertise the coordinate system of the service as 3857. ArcGIS 10 and all Web APIs are being designed to recognize EPSG 3857, ESRI WKID 102113, and ESRI WKID 102100 as equivalent.

share|improve this answer
3  
Yes, 3857 is the SRS of the month. Of course, EPSG changed their mind on what the code should be once already, changing it again is not off the table. :) Thank you, closed standards bodies! –  Christopher Schmidt Jul 24 '10 at 20:24
3  
Please note that as of ArcGIS v10 SP1, ESRI rolled back from 3857 back to 102100. Without any explanation. Go figure. So anything you published in V10 is now auto-magically rolled back to 102100. downloads2.esri.com/support/downloads/other_/…. –  Vadim Dec 10 '10 at 16:39
add comment

The authoritative online source for information on EPSG codes is the EPSG Geodetic Parameter Registry which is powered by the EPSG dataset but is often more current than the most recent version available for direct download.

According to this source, the EPSG::3785 projected CRS was initially created in response to Change Request EPSG::2008.016. This initial code was deprecated by way of Change Request EPSG::2008.114 which also introduced EPSG::3857 (and EPSG::3856).

You're not alone in the use of this deprecated code though; I have seen 3785 in the wild many times.

SpatialReference.org is FAR more user-friendly than the EPSG Registry (and actually linkable) but can not provide authoritative answers due to the lack of timely database releases by EPSG.

share|improve this answer
2  
Note that the reason SR.org can't provide authoritative data is because the EPSG doesn't provide up to date authoritative data that can be downloaded. –  Christopher Schmidt Jul 24 '10 at 20:24
    
@Christopher Schmidt yes, sorry, edited to clarify. Of course, it still wouldn't have authority, but it would at least be the same answers. –  JasonBirch Jul 24 '10 at 21:45
add comment

Here's a very nice article by Alastair Aitchison describing the history of Web Mercator projection, together with all the EPSG code changes and reasons for them: The Google Maps / Bing Maps Spherical Mercator Projection. Highly recommended read.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.