[Tile-serving] Getting rid of epsg:900913?

Sven Geggus lists at fuchsschwanzdomain.de
Sun Jul 7 14:03:19 UTC 2013


Hello,

as epsg:900913 has been obsolete for a long time now. How about adding
the following patch:

diff --git a/reprojection.c b/reprojection.c
index b8f3f17..58c92dc 100644
--- a/reprojection.c
+++ b/reprojection.c
@@ -49,7 +49,7 @@ const struct Projection_Info Projection_Info[] = {
   [PROJ_SPHERE_MERC] = { 
      .descr     = "Spherical Mercator",  
      .proj4text = "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs", 
-     .srs       = 900913, 
+     .srs       = 3857, 
      .option    = "-m" }
 };
 static struct Projection_Info custom_projection;
@@ -144,7 +144,7 @@ void reproject(double *lat, double *lon)
 
     if (Proj == PROJ_SPHERE_MERC)
     {
-      /* The latitude co-ordinate is clipped at slightly larger than the 900913 'world' 
+      /* The latitude co-ordinate is clipped at slightly larger than the 3857 'world' 
        * extent of +-85.0511 degrees to ensure that the points appear just outside the
        * edge of the map. */
 
Regards

Sven

-- 
"Dynamische IP-Nummern sind Security-Homöopathie."
						(Kristian Köhntopp)

/me is giggls at ircnet, http://sven.gegg.us/ on the Web



More information about the Tile-serving mailing list