[mapserver-commits] r7915 - branches/branch-5-2/mapserver
svn at osgeo.org
svn at osgeo.org
Wed Sep 17 23:52:18 EDT 2008
Author: pramsey
Date: 2008-09-17 23:52:17 -0400 (Wed, 17 Sep 2008)
New Revision: 7915
Modified:
branches/branch-5-2/mapserver/maptile.c
Log:
Add some information about equivalent metric extents to debugging output in tile mode.
Modified: branches/branch-5-2/mapserver/maptile.c
===================================================================
--- branches/branch-5-2/mapserver/maptile.c 2008-09-17 22:24:15 UTC (rev 7914)
+++ branches/branch-5-2/mapserver/maptile.c 2008-09-18 03:52:17 UTC (rev 7915)
@@ -167,7 +167,7 @@
xmax = ((x + 1) * tilesize) - (SPHEREMERC_GROUND_SIZE / 2.0);
ymin = (SPHEREMERC_GROUND_SIZE / 2.0) - ((y + 1) * tilesize);
ymax = (SPHEREMERC_GROUND_SIZE / 2.0) - (y * tilesize);
-
+
map->extent.minx = xmin;
map->extent.maxx = xmax;
map->extent.miny = ymin;
@@ -224,7 +224,11 @@
msObj->ImgRows = SPHEREMERC_IMAGE_SIZE;
map->width = SPHEREMERC_IMAGE_SIZE;
map->height = SPHEREMERC_IMAGE_SIZE;
-
+
+ if(map->debug) {
+ msDebug( "msTileSetExtent (%f, %f) (%f, %f)\n", map->extent.minx, map->extent.miny, map->extent.maxx, map->extent.maxy);
+ }
+
return MS_SUCCESS;
#else
msSetError(MS_CGIERR, "Tile API is not available.", "msTileSetExtent()");
More information about the mapserver-commits
mailing list