49

I am a bit confused on EPSG:4326 and EPSG:900913. I thought that they were both same. Though as I am placing my features over GMaps, which is EPSG:4326, I need to define the srsname of the WFS layer as EPSG:900913 to get it into the right place. If I define srsname as 4326 it is projected somewhere completely wrong.

Could someone explain it a bit more in detail as to what is wrong here?

underdark
  • 84,148
  • 21
  • 231
  • 413
Sam007
  • 4,395
  • 7
  • 48
  • 69
  • You may have been thinking of EPSG:3857, which is the other commonly used Google projection, and it is the same as EPSG:900913. – rudivonstaden Nov 20 '12 at 11:08
  • Ya I have also noticed 3857. So is it the same as 900913? 3857 also treats the earth as a sphere? – Sam007 Nov 20 '12 at 16:05
  • 1
    Yes, it does. The two are exactly equivalent. – rudivonstaden Nov 20 '12 at 20:25
  • 27
    As a point of trivia: 900913 was originally rejected as a credible projection by European Petroleum Survey Group (EPSG) so Google (who invented it for the web) gave it their own number, which if you type it on an old fashioned calculator spells 'googlE' (substitute '9' for 'g' and squint a bit). Eventually EPSG relented and allowed 900913 into its geodetic repository but gave it the number 3857. – MappaGnosis Jan 24 '13 at 08:10
  • 2
    To add to R.K.'s answer, EPSG:900913 uses an authalic sphere. – arcsump Jan 24 '13 at 07:55
  • 3
    @arcsump, 900913 (3857) does not use an authalic sphere. It uses a sphere with a radius equal to the semimajor axis of WGS 1984 ellipsoid. – mkennedy Jan 24 '13 at 17:52
  • 5
    @sylvester-sneekly, Google did not define 900913, Christopher Schmidt of OpenLayers did: http://crschmidt.net/blog/archives/243/google-projection-900913/ – mkennedy Jan 24 '13 at 17:54
  • 1
    For a concise infographic displaying the differences see http://xkcd.com/977/ – cwd Aug 04 '14 at 01:45

2 Answers2

61

They are not the same. EPSG:4326 refers to WGS 84 whereas EPSG:900913 refers to WGS84 Web Mercator. EPSG:4326 treats the earth as an ellipsoid while EPSG:900913 treats it as a sphere. This affects calculations done based on treating the map as a flat plane which is why your features got plotted on the wrong places.

R.K.
  • 17,405
  • 3
  • 59
  • 110
  • 22
    Also, coordinate values will be totally different, EPSG:4326 has decimal degree values (-180 to 180 and -90 to 90) while EPSG:900913 has metric values (-20037508.34 to 20037508.34). – Crischan Sep 26 '12 at 08:18
  • Ya i did notice how the co-ordinate values were changing. Thanks – Sam007 Sep 26 '12 at 16:05
  • 1
    EPSG:4326 does not need decimal degree values. See the EPSG registry Coordinates referenced to this CS are in degrees. Any degree representation (e.g. DMSH, decimal, etc.) may be used but that used must be declared for the user by the supplier of data. Used in geographic 2D coordinate reference systems. ~ https://epsg.org/unit_9122/degree-supplier-to-define-representation.html – nmtoken Jun 08 '23 at 10:44
33

EPSG:4326 uses a lat/long coordinate system. Latitudes are = 90 to -90 and Longitudes are = 180 to -180

EPSG:900913 uses an x/y axis coordinate system.

jdmcbr
  • 904
  • 1
  • 6
  • 10
aries2_2
  • 331
  • 3
  • 2