[mapserver-commits] r7871 - trunk/mapserver/mapscript/swiginc

svn at osgeo.org svn at osgeo.org
Tue Aug 19 23:57:24 EDT 2008


Author: sdlime
Date: 2008-08-19 23:57:24 -0400 (Tue, 19 Aug 2008)
New Revision: 7871

Modified:
   trunk/mapserver/mapscript/swiginc/layer.i
Log:
Fixed non-functioning whichShapes() method for layerObj in MapScript. (#2689).

Modified: trunk/mapserver/mapscript/swiginc/layer.i
===================================================================
--- trunk/mapserver/mapscript/swiginc/layer.i	2008-08-20 03:47:12 UTC (rev 7870)
+++ trunk/mapserver/mapscript/swiginc/layer.i	2008-08-20 03:57:24 UTC (rev 7871)
@@ -159,7 +159,7 @@
         /* 
         ** We assume folks use this like a simple query so retrieve all items with each shape.
         */
-        msLayerGetItems(self);
+        if(msLayerWhichItems(self, MS_TRUE, MS_FALSE, NULL) != MS_SUCCESS) return MS_FAILURE;
         return msLayerWhichShapes(self, rect);
     }	
 



More information about the mapserver-commits mailing list