[mapserver-commits] r12705 - trunk/mapserver/mapcache/src

svn at osgeo.org svn at osgeo.org
Wed Oct 26 10:53:52 EDT 2011


Author: tbonfort
Date: 2011-10-26 07:53:52 -0700 (Wed, 26 Oct 2011)
New Revision: 12705

Modified:
   trunk/mapserver/mapcache/src/configuration_xml.c
Log:
fix grid maxx,maxy calculation


Modified: trunk/mapserver/mapcache/src/configuration_xml.c
===================================================================
--- trunk/mapserver/mapcache/src/configuration_xml.c	2011-10-26 14:45:32 UTC (rev 12704)
+++ trunk/mapserver/mapcache/src/configuration_xml.c	2011-10-26 14:53:52 UTC (rev 12705)
@@ -209,8 +209,8 @@
          level->resolution = values[nvalues];
          double unitheight = grid->tile_sy * level->resolution;
          double unitwidth = grid->tile_sx * level->resolution;
-         level->maxy = ceil((grid->extent[3]-grid->extent[1] - 0.01* unitheight)/unitheight);
-         level->maxx = ceil((grid->extent[2]-grid->extent[0] - 0.01* unitwidth)/unitwidth);
+         level->maxy = ceil((extent[3]-extent[1] - 0.01* unitheight)/unitheight);
+         level->maxx = ceil((extent[2]-extent[0] - 0.01* unitwidth)/unitwidth);
          grid->levels[nvalues] = level;
       }
    }



More information about the mapserver-commits mailing list