[mapserver-commits] r11829 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Jun 17 09:44:38 EDT 2011


Author: warmerdam
Date: 2011-06-17 06:44:38 -0700 (Fri, 17 Jun 2011)
New Revision: 11829

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapprojhack.c
Log:
Fix GetMapserverUnitUsingProj() for proj=latlong (#3883)

Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2011-06-16 14:17:54 UTC (rev 11828)
+++ trunk/mapserver/HISTORY.TXT	2011-06-17 13:44:38 UTC (rev 11829)
@@ -63,6 +63,9 @@
 - Improve rangeset item checking so that Bands=1,2,3 is supported with WCS 1.0
   (#3919).
 
+- Fix GetMapserverUnitUsingProj() for proj=latlong (#3883)
+
+
 Version 6.0.0 (2011-05-11)
 --------------------------
 

Modified: trunk/mapserver/mapprojhack.c
===================================================================
--- trunk/mapserver/mapprojhack.c	2011-06-16 14:17:54 UTC (rev 11828)
+++ trunk/mapserver/mapprojhack.c	2011-06-17 13:44:38 UTC (rev 11829)
@@ -81,8 +81,13 @@
 int GetMapserverUnitUsingProj(projectionObj *psProj)
 {
 #ifdef USE_PROJ
-    char *proj_str = pj_get_def( psProj->proj, 0 );
+    char *proj_str;
 
+    if( pj_is_latlong( psProj ) )
+        return MS_DD;
+
+    proj_str = pj_get_def( psProj->proj, 0 );
+
 /* -------------------------------------------------------------------- */
 /*      Handle case of named units.                                     */
 /* -------------------------------------------------------------------- */



More information about the mapserver-commits mailing list