[OpenLayers-Commits] r12162 - trunk/doc/library

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Sat Jul 9 08:08:12 EDT 2011


Author: crschmidt
Date: 2011-07-09 05:08:11 -0700 (Sat, 09 Jul 2011)
New Revision: 12162

Modified:
   trunk/doc/library/spherical_mercator.rst
Log:
Change 'official' designation in docs, and remove unneccesary 3857 projection
registration since this is included in the codebase now.


Modified: trunk/doc/library/spherical_mercator.rst
===================================================================
--- trunk/doc/library/spherical_mercator.rst	2011-07-09 00:05:04 UTC (rev 12161)
+++ trunk/doc/library/spherical_mercator.rst	2011-07-09 12:08:11 UTC (rev 12162)
@@ -34,7 +34,7 @@
 Projections in GIS are commonly referred to by their "EPSG" codes, identifiers
 managed by the European Petroleum Survey Group. One common identifier is
 "EPSG:4326", which describes maps where latitude and longitude are treated as
-X/Y values. Spherical Mercator has an official designation of EPSG:3785. 
+X/Y values. Spherical Mercator has an official designation of EPSG:3857. 
 However, before this was established, a large amount of software used the 
 identifier EPSG:900913. This is an unofficial code, but is still the commonly
 used code in OpenLayers. Any time you see the string "EPSG:4326", you can 
@@ -416,10 +416,6 @@
 
 .. code-block:: javascript
   
-  // set transformation functions from/to alias projection
-  OpenLayers.Projection.addTransform("EPSG:4326", "EPSG:3857", OpenLayers.Layer.SphericalMercator.projectForward);
-  OpenLayers.Projection.addTransform("EPSG:3857", "EPSG:4326", OpenLayers.Layer.SphericalMercator.projectInverse);
-
   // create sphericalmercator layers
   var googleLayer = new OpenLayers.Layer.Google("Google", {"sphericalMercator": true});
   var osmLayer = new OpenLayers.Layer.OSM("OpenStreetMap");



More information about the Commits mailing list