[mapserver-commits] r7508 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Wed Apr 9 14:57:13 EDT 2008
Author: warmerdam
Date: 2008-04-09 14:57:12 -0400 (Wed, 09 Apr 2008)
New Revision: 7508
Modified:
trunk/mapserver/mapserv.c
Log:
add some explanation of the magic lat/long recognition code
Modified: trunk/mapserver/mapserv.c
===================================================================
--- trunk/mapserver/mapserv.c 2008-04-09 17:46:44 UTC (rev 7507)
+++ trunk/mapserver/mapserv.c 2008-04-09 18:57:12 UTC (rev 7508)
@@ -393,7 +393,15 @@
msFreeCharArray(tokens, 4);
#ifdef USE_PROJ
- /* make sure both coordinates are in range! */
+ /*
+ * If there is a projection in the map file, and it is not lon/lat, and the
+ * extents "look like" they *are* lon/lat, based on their size,
+ * then convert the extents to the map file projection.
+ *
+ * DANGER: If the extents are legitimately in the mapfile projection
+ * and coincidentally fall in the lon/lat range, bad things
+ * will ensue.
+ */
if(msObj->Map->projection.proj && !pj_is_latlong(msObj->Map->projection.proj)
&& (msObj->Map->extent.minx >= -180.0 && msObj->Map->extent.minx <= 180.0)
&& (msObj->Map->extent.miny >= -90.0 && msObj->Map->extent.miny <= 90.0)
More information about the mapserver-commits
mailing list