[mapserver-commits] r8978 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed Apr 29 23:44:16 EDT 2009


Author: warmerdam
Date: 2009-04-29 23:44:16 -0400 (Wed, 29 Apr 2009)
New Revision: 8978

Modified:
   trunk/mapserver/maprasterquery.c
Log:
fix support for building without GDAL

Modified: trunk/mapserver/maprasterquery.c
===================================================================
--- trunk/mapserver/maprasterquery.c	2009-04-30 03:37:25 UTC (rev 8977)
+++ trunk/mapserver/maprasterquery.c	2009-04-30 03:44:16 UTC (rev 8978)
@@ -1303,6 +1303,9 @@
 int msRASTERLayerGetExtent(layerObj *layer, rectObj *extent)
 
 { 
+#ifndef USE_GDAL
+    return MS_FAILURE;
+#else
   char szPath[MS_MAXPATHLEN];
   mapObj *map = layer->map;
   double adfGeoTransform[6];
@@ -1357,6 +1360,7 @@
   extent->miny = adfGeoTransform[3] + nYSize * adfGeoTransform[5];
   
   return MS_SUCCESS;
+#endif /* def USE_GDAL */
 }
 
 



More information about the mapserver-commits mailing list