[mapserver-commits] r9308 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Sep 15 12:23:47 EDT 2009


Author: dmorissette
Date: 2009-09-15 12:23:45 -0400 (Tue, 15 Sep 2009)
New Revision: 9308

Modified:
   trunk/mapserver/mapows.c
Log:
Fixed msOWSGetEPSGProj() to recognize CRS: codes as well. Solves an issue with WMS BoundingBox generation in GetCapabilities with CRS:84 as default proj (#3068)

Modified: trunk/mapserver/mapows.c
===================================================================
--- trunk/mapserver/mapows.c	2009-09-15 14:41:33 UTC (rev 9307)
+++ trunk/mapserver/mapows.c	2009-09-15 16:23:45 UTC (rev 9308)
@@ -1618,6 +1618,9 @@
   } else if (proj && proj->numargs > 0 && (value = strstr(proj->args[0], "init=epsg:")) != NULL && strlen(value) < 20) {
     sprintf(epsgCode, "EPSG:%s", value+10);
     return epsgCode;
+  } else if (proj && proj->numargs > 0 && (value = strstr(proj->args[0], "init=crs:")) != NULL && strlen(value) < 20) {
+    sprintf(epsgCode, "CRS:%s", value+9);
+    return epsgCode;
   } else if (proj && proj->numargs > 0 && (strncasecmp(proj->args[0], "AUTO:", 5) == 0 ||
                                            strncasecmp(proj->args[0], "AUTO2:", 6) == 0)) {
     return proj->args[0];



More information about the mapserver-commits mailing list