[mapserver-commits] r7879 - trunk/mapserver/mapscript/php3
svn at osgeo.org
svn at osgeo.org
Fri Aug 22 11:45:07 EDT 2008
Author: dmorissette
Date: 2008-08-22 11:45:03 -0400 (Fri, 22 Aug 2008)
New Revision: 7879
Modified:
trunk/mapserver/mapscript/php3/mapscript_i.c
Log:
Fixed non-functioning whichShapes() method for layerObj in MapScript. (#2689).
Modified: trunk/mapserver/mapscript/php3/mapscript_i.c
===================================================================
--- trunk/mapserver/mapscript/php3/mapscript_i.c 2008-08-22 15:27:54 UTC (rev 7878)
+++ trunk/mapserver/mapscript/php3/mapscript_i.c 2008-08-22 15:45:03 UTC (rev 7879)
@@ -372,7 +372,10 @@
int layerObj_whichShapes(layerObj *self, rectObj *poRect) {
- msLayerGetItems(self);
+ /*
+ ** We assume folks use this like a simple query so retrieve all items with each shape.
+ */
+ if(msLayerWhichItems(self, MS_TRUE, MS_FALSE, NULL) != MS_SUCCESS) return MS_FAILURE;
return msLayerWhichShapes(self, *poRect);
}
More information about the mapserver-commits
mailing list